Bug #15260 Updated: file_exists doesn't work with 2G+ files
| From: | wweng at kencast dot com | Date: | Mon, 28 Jan 2002 20:44:50 +0000 |
| Subject: | Bug #15260 Updated: file_exists doesn't work with 2G+ files | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-78341@lists.php.net to get a copy of this message | ||
ID: 15260
Comment by: wweng@kencast.com
Reported By: wweng@kencast.com
Status: Feedback
Bug Type: *Directory/Filesystem functions
Operating System: Linux
PHP Version: 4.0.5
New Comment:
I believe I had found the reason of this bug.
file_exists function ultimately calls VCWD_STAT function defined in
TSRM/tsrm_virtual_cwd.h. However, the VCWD_STAT function is only a
macro for stat(path, mode), and under Linux, you need stat64 for 64 bit
file stats operations.
hmm, and all the file I/Os under PHP right now do not support 64 bits.
This is bad...
Previous Comments:
------------------------------------------------------------------------
[2002-01-28 15:26:54] wweng@kencast.com
Can not seem to find the RPM(php-4.1.1) for Redhat 7.2. :(
There is no build environment on testing machines.
------------------------------------------------------------------------
[2002-01-28 15:17:05] jan@php.net
and then again, can you please test with a more recent PHP release?
------------------------------------------------------------------------
[2002-01-28 15:15:54] wweng@kencast.com
Where can I (and how do I) get the source code to file_exists function?
------------------------------------------------------------------------
[2002-01-28 15:15:00] wweng@kencast.com
Actually, I do have a 4Gig file on the file system. (Since we used the
64bit file operation for our software on all our file I/O)
[root@ECTWO root] ls -la /opt/incoming
total 4399256
drwxrwxr-x 2 **** **** 4096 Jan 28 13:35
drwxr-xr-x 5 root root 4096 Jan 28 10:44
-rw-rw-r-- 1 **** **** 4499238984 May 10 2001 BigPackage.fpk.pck
------------------------------------------------------------------------
[2002-01-28 15:02:33] jan@php.net
how can he have a file of 4GB if his filesystem does not support it?
------------------------------------------------------------------------
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/?id=15260
Edit this bug report at http://bugs.php.net/?id=15260&edit=1