note 29452 deleted from function.filesize by aidan

From: Date: Sun, 26 Sep 2004 00:21:16 +0000
Subject: note 29452 deleted from function.filesize by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77345@lists.php.net to get a copy of this message
Note Submitter: swbrown at ucsd dot edu ---- Be very careful to include clearstatcache() before any call to filesize()! I just finished debugging a really painful bug to find that was due to reading in a file like 'fread($file, filesize(...))', writing it out, then later reading it in the same way. filesize() was cached, so in some cases, the data was truncated!

« previous php.notes (#77345) next »