>2gb Filesize display
Posted by: engle2192 (---.229.67.68.static.ip.windstream.net)
Date: November 25, 2015 02:39PM

So Id like to start out by saying I love wamp and everything is working amazing except one thing. On my site I host some files. Anything under 2gb the file size is shown correctly. Anything greater than 2gb it shows as 0bytes. Im running wamp 2.5 on windows server 2012 r2 64bit. Any ideas?

Thank you in advance!

Options: ReplyQuote
Re: >2gb Filesize display
Posted by: Otomatic (Moderator)
Date: November 25, 2015 02:48PM

Hi,

> Anything under 2gb the file size is shown correctly

Only PHP 7.0.0 64 bit will be able to handle files larger than 2GB.

For now, even with PHP 5.6.x compiled in 64-bit versions, the file size is limited to 2 GB.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: >2gb Filesize display
Posted by: engle2192 (---.229.67.68.static.ip.windstream.net)
Date: November 25, 2015 03:32PM

Correct. Everything under 2. Even 1.8GB file shows up. So there is no way to get >2gb files to show there size? Its kind of silly when a download starts for a file thats larger then 2gb the user cant see the file size or length of how long it will take to download.

Options: ReplyQuote
Re: >2gb Filesize display
Posted by: Otomatic (Moderator)
Date: November 25, 2015 03:49PM

Hi,

> So there is no way to get >2gb files to show there size?
NO.
Because PHP's integer type is signed and many platforms use 32bit integers, some filesystem functions may return unexpected results for files which are larger than 2GB.

Only with a FULL and TRUE 64 bit system.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.