note 105044 added to function.filesize
| From: | Anonymous at osu1 dot php dot net | Date: | Mon, 25 Jul 2011 04:05:17 +0000 |
| Subject: | note 105044 added to function.filesize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-181815@lists.php.net to get a copy of this message | ||
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
----
Server IP: 69.147.83.197
Probable Submitter: 72.213.174.68
----
Manual Page -- http://www.php.net/manual/en/function.filesize.php
Edit -- https://master.php.net/note/edit/105044
Del: integrated -- https://master.php.net/note/delete/105044/integrated
Del: useless -- https://master.php.net/note/delete/105044/useless
Del: bad code -- https://master.php.net/note/delete/105044/bad+code
Del: spam -- https://master.php.net/note/delete/105044/spam
Del: non-english -- https://master.php.net/note/delete/105044/non-english
Del: in docs -- https://master.php.net/note/delete/105044/in+docs
Del: other reasons-- https://master.php.net/note/delete/105044
Reject -- https://master.php.net/note/reject/105044
Search -- https://master.php.net/manage/user-notes.php