php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36719 is_file failes to see the file has gone
Submitted: 2006-03-13 15:31 UTC Modified: 2006-03-13 15:43 UTC
From: phpbugs at lowvoice dot nl Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.1.2 OS: linux
Private report: No CVE-ID: None
 [2006-03-13 15:31 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Dec 07 01:00:01 2025 UTC