Bug #9993 Updated: Wrong File Created Date and Wrong Filesize
| From: | oliveirb dot mallet at edf dot fr | Date: | Thu, 04 Jul 2002 11:47:28 +0000 |
| Subject: | Bug #9993 Updated: Wrong File Created Date and Wrong Filesize | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-13103@lists.php.net to get a copy of this message | ||
ID: 9993
Updated by: oliveirb.mallet@edf.fr
Reported By: lopes@noite.pt
Status: Closed
Bug Type: *Directory/Filesystem functions
Operating System: WINNT
PHP Version: 4.0.4
New Comment:
I have the same problem with filemtime (always returns 0), with
PHP4.0.6 on Solaris 5.6
The bug must be reopen.
Olivier
Previous Comments:
------------------------------------------------------------------------
[2001-06-14 16:09:34] sniper@php.net
Must be fixed since I can't reproduce this with 4.0.5.
(or it's your system)
------------------------------------------------------------------------
[2001-03-26 08:40:43] lopes@noite.pt
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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=9993&edit=1