PHP 4.0 Bug #9921 Updated: Wrong File Created Date and Wrong Filesize
| From: | sniper@php.net | Date: | Mon, 26 Mar 2001 20:51:11 +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-49986@lists.php.net to get a copy of this message | ||
ID: 9921
Updated by: sniper
Reported By: lopes@noite.pt
Old-Status: Feedback
Status: Bogus
Bug Type: Filesystem function related
Assigned To:
Comments:
There's a duplicate for this: #9993
Please, update the old bug report, do NOT open new ones!
(from now on, update #9993 !)
--Jani
Previous Comments:
---------------------------------------------------------------------------
[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);
}
}
?>
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9921&edit=2