ID: 32095 Updated by: [EMAIL PROTECTED] Reported By: david at giffin dot org -Status: Feedback +Status: No Feedback Bug Type: Filesystem function related Operating System: Linux Debian PHP Version: 5.0.1 New Comment:
No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2005-02-25 14:26:27] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2005-02-24 18:04:30] david at giffin dot org 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32095&edit=1