Bug #15260 Updated: file_exists doesn't work with 2G+ files

From: Date: Mon, 28 Jan 2002 20:15:02 +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-78335@lists.php.net to get a copy of this message
ID: 15260 Comment by: wweng@kencast.com Reported By: wweng@kencast.com Status: Open Bug Type: *Directory/Filesystem functions Operating System: Linux PHP Version: 4.0.5 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2002-01-28 15:02:33] jan@php.net how can he have a file of 4GB if his filesystem does not support it? ------------------------------------------------------------------------ [2002-01-28 15:00:17] mrobinso@php.net This is a limitation of the filesystem (and linux kernel without LFS support), not php. ------------------------------------------------------------------------ [2002-01-28 14:59:43] jan@php.net can you please test either PHP 4.1.1 (latest release) or a cvs snapshot (snaps.php.net) ? ------------------------------------------------------------------------ [2002-01-28 14:57:17] wweng@kencast.com I have a 4G file in /opt/incoming called /opt/incoming/bigpackage.pck I used if(file_exists("/opt/incoming/bigpackage.pck")) echo "Exists"; else echo "Not exists"; and it always returns me "Not exists". I suspect the file_exists function has problem with 2G+ files. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=15260&edit=1

« previous php.dev (#78335) next »