From: php at hack-mich dot net
Operating system: Win Vista x64
PHP version: 5.2.5
PHP Bug Type: Unknown/Other Function
Bug description: filesize() returns wrong values for files >4gb
Description:
------------
For files >4gb filesize returns negative values (seems that it overwrites
the sign bit -> becomes negative)
Same is with 2gb files and 32bit oses, but that has not been confirmed
yet.
Reproduce code:
---------------
echo filesize('foo.bar');
//if foo.bar is > 4gb it returns a negative value
Expected result:
----------------
something like 5234556
Actual result:
--------------
something like -3456634
--
Edit bug report at http://bugs.php.net/?id=44215&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=44215&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=44215&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=44215&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44215&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=44215&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44215&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44215&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44215&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44215&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44215&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=44215&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=44215&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44215&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44215&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44215&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44215&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44215&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44215&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44215&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44215&r=mysqlcfg