Comment 4 for bug 821446

Revision history for this message
Jude Coelho (judec) wrote :

Looking into this matter, it does in fact appear to be a bug. Rerepublisher compares the filesize listed in files.xml with the actual size of the file to determine whether the files downloaded properly. It uses the php function filesize() to do this.

Looking at the manual for filesize() ( http://php.net/manual/en/function.filesize.php ), it appears there is a problem when trying to get the size of files larger than 2GB. While there is a fix using sprintf, this is only effective up to 4GB.

There are some suggestions on the manual page to get proper filesizes, or perhaps I could switch to checking the MD5 instead, but I don't know that I'll be able to get to this in the next couple of days. Can this book wait a bit?