ID: 36719 Updated by: [EMAIL PROTECTED] Reported By: phpbugs at lowvoice dot nl -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: linux PHP Version: 5.1.2 New Comment:
Use http://php.net/clearstatcache. Previous Comments: ------------------------------------------------------------------------ [2006-03-13 15:31:43] phpbugs at lowvoice dot nl Description: ------------ is_file failes to see the file has gone i wanted to have a script run as long as a file existed, on removing the file is_file was supposed to fail and my program should break out of the loop Reproduce code: --------------- test.php: <? while (is_file('foo')){ echo "still there\n"; sleep(1); } ?> shellcode: #> touch foo #> php test.php & still there still there still there .. #> rm foo still there still there .. Expected result: ---------------- It should have stopped after rm foo ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36719&edit=1
