note 76498 deleted from function.clearstatcache by vrana
| From: | vrana@php.net | Date: | Thu, 16 Aug 2007 14:03:37 +0000 |
| Subject: | note 76498 deleted from function.clearstatcache by vrana | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-129530@lists.php.net to get a copy of this message | ||
Note Submitter: j dot gauth at gmail dot com
----
Note, contrary to the above information, stat cache entries are cleared when certain PHP functions
are run. For instance, if you use unlink() to remove a file, the stat cache information is
automatically purged for that particular file:
<?php
var_dump(file_exists('dummy')); // false, dummy doesn't exist
touch('dummy'); // create dummy
var_dump(file_exists('dummy')); // true, dummy exists
unlink('dummy'); // remove dummy
var_dump(file_exists('dummy')); // false, dummy no longer exists
?>