ID: 9993
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Directory/Filesystem functions
Operating system:
PHP Version: 4.0.4
Assigned To:
Comments:
Must be fixed since I can't reproduce this with 4.0.5.
(or it's your system)
Previous Comments:
---------------------------------------------------------------------------
[2001-03-26 08:40:43] [EMAIL PROTECTED]
I have already send a previus bug report.
ID: 9921.
The Source is :
<?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);
}
}
?>
The Output for every file (no matter filesize or file date) is :
<filename> 01/01/1970 0
---------------------
I think i has something to do with the Y2K bug.
Perl had the same bug.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9993&edit=2
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]