|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-25 14:26 UTC] sniper@php.net
[2005-03-20 18:09 UTC] sniper@php.net
[2006-03-07 17:03 UTC] steffen dot ryll at siemens dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 15:00:02 2025 UTC |
Description: ------------ file_exists() doesn't work under apache with files that are >= 2 gig. The script provided works using the cli version of php5 compilied on the same system at the same time as the apache version. Reproduce code: --------------- <?php print "<pre>"; $file = "/tmp/tester.file"; for ($i = 0; $i < 6; $i++) { @unlink($file); $cmd = "dd if=/dev/zero of=$file bs=1024 count=1024 seek={$i}M"; echo $cmd . "\n"; system($cmd); system("ls -lh $file"); echo "File Exists: " . file_exists($file) . "\n"; print "\n"; } @unlink($file); print "</pre>"; ?> Expected result: ---------------- file_exists should return true even though the file is >= 2 gig Actual result: -------------- file_exists returns false if >= 2 gig