PHP 4.0 Bug #9921 Updated: Wrong File Created Date and Wrong Filesize
| From: | lopes at noite dot pt | Date: | Wed, 28 Mar 2001 15:17:17 +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-50132@lists.php.net to get a copy of this message | ||
ID: 9921
User Update by: lopes@noite.pt
Status: Bogus
Bug Type: Filesystem function related
Description: Wrong File Created Date and Wrong Filesize
Sorry!
The Output for every file (no matter filesize or file date) is :
<filename> 01/01/1970 0
Previous Comments:
---------------------------------------------------------------------------
[2001-03-26 15:51:10] sniper@php.net
There's a duplicate for this: #9993
Please, update the old bug report, do NOT open new ones!
(from now on, update #9993 !)
--Jani
---------------------------------------------------------------------------
[2001-03-23 08:13:08] sniper@php.net
Can you please add the output of this?
ie. How are the date and size wrong?
--Jani
---------------------------------------------------------------------------
[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);
}
}
?>
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=9921