PHP 4.0 Bug #9921 Updated: Wrong File Created Date and Wrong Filesize

From: Date: Fri, 23 Mar 2001 13:13:08 +0000
Subject: PHP 4.0 Bug #9921 Updated: Wrong File Created Date and Wrong Filesize
Groups: php.dev 
Request: Send a blank email to php-dev+get-49808@lists.php.net to get a copy of this message
ID: 9921 Updated by: sniper Reported By: lopes@noite.pt Old-Status: Open Status: Feedback Bug Type: Filesystem function related Assigned To: Comments: Can you please add the output of this? ie. How are the date and size wrong? --Jani Previous Comments: --------------------------------------------------------------------------- [2001-03-22 09:31:40] lopes@noite.pt <?php $fhandle = opendir("."); while (false!=($file = readdir($fhandle))) { if ($file != "." && $file != "..") { if (!(is_dir($file))) { $fdata = filemtime($file); $fdata = date("d/m/Y",$fdata); $fsize = filesize($file); printf("%s %s %dn", $file, $fdata, $fsize); } clearstatcache(); closedir($fhandle); } } ?> --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9921&edit=2

« previous php.dev (#49808) next »