#27792 [Csd->Asn]: Functions fail on large files (filesize,is_file,is_dir)
| From: | edink@php.net | Date: | Fri, 22 Oct 2004 10:48:53 +0000 |
| Subject: | #27792 [Csd->Asn]: Functions fail on large files (filesize,is_file,is_dir) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-67943@lists.php.net to get a copy of this message | ||
ID: 27792
Updated by: edink@php.net
Reported By: kode at kodekrash dot com
-Status: Closed
+Status: Assigned
Bug Type: Filesystem function related
Operating System: * (LFS)
PHP Version: 5CVS-2004-04-07
-Assigned To:
+Assigned To: wez
New Comment:
The fix was reverted.
Previous Comments:
------------------------------------------------------------------------
[2004-10-22 01:53:04] edink@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2004-10-19 16:39:13] edink@php.net
Compile PHP with:
CFLAGS="
getconf LFS_CFLAGS" ./configure (your configure options
here)
and it should work.
------------------------------------------------------------------------
[2004-09-14 16:54:34] yapning at yahoo dot com
Is there any chance for the LFS feature be implemented on the
Filesystem functions soon?
------------------------------------------------------------------------
[2004-03-31 07:14:18] wez@php.net
PHP does not currently support LFS.
This is something to be addressed in PHP 5.1
------------------------------------------------------------------------
[2004-03-31 03:27:56] kode at kodekrash dot com
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 this bug report at http://bugs.php.net/?id=27792&edit=1