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

From: Date: Thu, 22 Mar 2001 14:31:40 +0000
Subject: PHP 4.0 Bug #9921: Wrong File Created Date and Wrong Filesize
Groups: php.dev 
Request: Send a blank email to php-dev+get-49740@lists.php.net to get a copy of this message
From: lopes@noite.pt Operating system: WINNT4 PHP version: 4.0.4 PHP Bug Type: Filesystem function related Bug description: Wrong File Created Date and Wrong Filesize <?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 %d\n", $file, $fdata, $fsize); } clearstatcache(); closedir($fhandle); } } ?> -- Edit Bug report at: http://bugs.php.net/?id=9921&edit=1

« previous php.dev (#49740) next »