note 105044 deleted from function.filesize by danbrown
| From: | danbrown@php.net | Date: | Mon, 25 Jul 2011 12:20:13 +0000 |
| Subject: | note 105044 deleted from function.filesize by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-181826@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
filesize() isn't the only function that will cache the value later returned by filesize();
At least on a windows box, filemtime() will also cache filesize
filemtime(somefile);
// rewrite somefile's contents
filesize(somefile); // will not return what you think it should
// and never called filesize previously