ID: 27792
Comment by: sorry at example dot com
Reported By: kode at kodekrash dot com
Status: Assigned
Bug Type: Filesystem function related
Operating System: * (LFS)
PHP Version: 6CVS, *CVS
Assigned To: wez
New Comment:
A workaround for this is:
$filesize=exec("ls -l '$yourfile' | awk '{print $5}'");
Previous Comments:
------------------------------------------------------------------------
[2006-07-24 13:17:03] caluml at gmail dot com
Don't forget that PHP is not used exclusively on websites.
I use the CLI version for other uses, and this <2GB limit is starting
to make that rather awkward.
Getting the filesystem functions working with large files would be very
useful.
------------------------------------------------------------------------
[2005-10-24 21:16:03] hendersj at mindspring dot com
I have seen problems related to this both over NFS and using a local
NSS filesystem with Novell Open Enterprise Server (Linux kernel, SLES 9
is where the package orginates). The problem I have seen is more
accurately described in bug 33872, which was flagged as a duplicate of
this bug.
Bug 33872 describes a condition where readdir() returns only the
entries "." and ".." (in my case just "." is returned) regardless of
the permissions to the directory. The same code run against a reiserFS
partition works just fine.
I am running php 4.3.4; I have also seen it with PHP 4.2.2 when using
an NFS server that has 64-bit cookie values.
------------------------------------------------------------------------
[2005-10-19 12:01:16] php at wiels dot nl
I have the same problems on a windows 2003 server with php version
4.3.11 and filesystem ntfs.
Where file size is 3781778927, filesize() gives -513188369.
------------------------------------------------------------------------
[2005-09-22 12:23:43] r dot lopinski at interconcept dot de
Can reproduce the problem on php 5.0.2 and on php 4.3.4 using a
reiserfs filesystem. In addition the fucntion filemtime fails for files
with a size bigger 2 GB
------------------------------------------------------------------------
[2005-09-03 16:16:39] php at chairbreaker dot com
Same problem on SuSE Linux 9.3 using mod_php with Apache 2.0.53. PHP
version is 4.3.10, Kernel 2.6.11.4-21.8-default. File system is ext3.
PHP issues "Warning: is_dir(): Stat failed for <server path to file>
(errno=75 - Value too large for defined data type) in <path to
script>.php on line nnn" any time a file larger than 2 GB is
encountered, which unfortunately breaks my php menu system.
PHP is a great tool - hope you can fix this soon!
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/27792
--
Edit this bug report at http://bugs.php.net/?id=27792&edit=1