note 76498 added to function.clearstatcache

From: Date: Wed, 18 Jul 2007 11:11:18 +0000
Subject: note 76498 added to function.clearstatcache
Groups: php.notes 
Request: Send a blank email to php-notes+get-128683@lists.php.net to get a copy of this message
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 ?> ---- Server IP: 194.145.210.3 Probable Submitter: 62.3.216.18 ---- Manual Page -- http://www.php.net/manual/en/function.clearstatcache.php Edit -- https://master.php.net/note/edit/76498 Del: integrated -- https://master.php.net/note/delete/76498/integrated Del: useless -- https://master.php.net/note/delete/76498/useless Del: bad code -- https://master.php.net/note/delete/76498/bad+code Del: spam -- https://master.php.net/note/delete/76498/spam Del: non-english -- https://master.php.net/note/delete/76498/non-english Del: in docs -- https://master.php.net/note/delete/76498/in+docs Del: other reasons-- https://master.php.net/note/delete/76498 Reject -- https://master.php.net/note/reject/76498 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128683) next »