From:             kode at kodekrash dot com
Operating system: RedHat 7.3 (GNU/Linux 2.4.x)
PHP version:      4.3.4
PHP Bug Type:     *Directory/Filesystem functions
Bug description:  Functions fail on large files (filesize,is_file,is_dir)

Description:
------------
Error:

 (errno=75 - Value too large for defined data type)



Functions:

 is_file

 is_dir

 filesize



Premise:

 size of file is greater than 2GB.



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



I have been able to reproduce this error on 4 different PHP installations
(all on RedHat 7.3 machines), using 12 different files for each test.



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



This bug has been submitted before, but is marked as BOGUS, which it is
certainly not.

Reproduce code:
---------------
filesize( $fname );

or

is_file( $fname )

or

is_dir( $fname )



where filesize( $fname ) > 2GB

Expected result:
----------------
Function: filesize

Expected: numeric value matching size of file



Function: is_file

Expected: boolean value



Function: is_dir

Expected: boolean value

Actual result:
--------------
(errno=75 - Value too large for defined data type)

-- 
Edit bug report at http://bugs.php.net/?id=27792&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27792&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27792&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27792&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27792&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27792&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27792&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27792&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27792&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27792&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27792&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27792&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27792&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27792&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27792&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27792&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27792&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27792&r=float

Reply via email to