From: [EMAIL PROTECTED]
Operating system: Slackware Linux
PHP version: 4.3.4
PHP Bug Type: Documentation problem
Bug description: PHP CLI does not cache results of file_exists()
Description:
------------
It seems that results from file_exists() or similar are not being cached
with PHP-CLI. Since I think this is intended behavior this should be
reflected in the manual.
Reproduce code:
---------------
while( TRUE ) {
var_dump( file_exists( '/tmp/foo' ) );
sleep( 1 );
}
Expected result:
----------------
on creating/deleting /tmp/foo the result of file_exists() should not
change since there is no call to clearstatcache()
Actual result:
--------------
actually the output _does_ change
--
Edit bug report at http://bugs.php.net/?id=27134&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27134&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27134&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27134&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27134&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27134&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27134&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27134&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27134&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27134&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27134&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27134&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27134&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27134&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27134&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27134&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27134&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27134&r=float