From:             [EMAIL PROTECTED]
Operating system: WINNT
PHP version:      4.0.4
PHP Bug Type:     *Directory/Filesystem functions
Bug description:  Wrong File Created Date and Wrong Filesize

I have already send a previus bug report.
ID: 9921.

The Source is :

   $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); 



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 Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to