ID:               39212
 Updated by:       [EMAIL PROTECTED]
 Reported By:      josecarlos dot norte at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Reproducible crash
 Operating System: all
 PHP Version:      4.4.4
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php




Previous Comments:
------------------------------------------------------------------------

[2006-10-20 14:14:54] josecarlos dot norte at gmail dot com

Description:
------------
the php function filesize  (and probably others) are affected by a
integer overflow problem

if a file of 2147483649 bytes (that exceeds integer_max_value and make
integer become negative) is passed to filsize(); it return negative
values.




Reproduce code:
---------------
filesize(FILE_LONGER_OF_2147483647);


Expected result:
----------------
get the REAL filesize

Actual result:
--------------
incorrect filesize


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=39212&edit=1

Reply via email to