#1149 (download big files) does not work on 32 bit systems
#1149 (download big files) does not work on 32 bit server systems.
A file bigger than 2GB cannot have its size stored on a 32bits integer.
filesize($file) will fail and HTTP header
Content-Length will contain an erroneous size (and browsers will stop download @ ~2GB).
We cannot rely on filesize on this systems (return is unpredictable : http://php.net/manual/en/function.filesize.php#refsect1-function.filesize-returnvalues)
Proposal: do not send
Content-Length on 32 bits systems, check this with PHP_INT_SIZE (4 = 32 bits, 8 = 64 bits)
Download will work, but there will be no size and time displayed on browsers.
Affected server are 32 bit linux (very rare), and 32+64 bits windows with PHP < 7 (Most of them).