From 83c244195c6db71fdff28f650776c56ee94eda79 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Thu, 5 Feb 2004 19:44:51 +0000 Subject: [PATCH] fix #27134 php dont cache info about non-existent files git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@150588 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/clearstatcache.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reference/filesystem/functions/clearstatcache.xml b/reference/filesystem/functions/clearstatcache.xml index ebc7adf46c..e0e22b10af 100644 --- a/reference/filesystem/functions/clearstatcache.xml +++ b/reference/filesystem/functions/clearstatcache.xml @@ -1,5 +1,5 @@ - + @@ -24,6 +24,12 @@ clearstatcache function to clear the information that PHP caches about a file. + + You should also note that PHP don't cache information about non-existent + files. So, if you call file_exists on a file that + doesn't exist, it will return &false; untill you create the file. If you + create the file, it will return &true; even if you then delete the file. + This function caches information about specific filenames, so you only