|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9921 Wrong File Created Date and Wrong Filesize
Submitted: 2001-03-22 09:31 UTC Modified: 2001-03-28 10:17 UTC
From: lopes at noite dot pt Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.0.4 OS: WINNT4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: lopes at noite dot pt
New email:
PHP Version: OS:


 [2001-03-22 09:31 UTC] lopes at noite dot pt
   $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 %d\n", $file, $fdata, $fsize);



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-23 08:13 UTC]
Can you please add the output of this?
ie. How are the date and size wrong?


 [2001-03-26 15:51 UTC]
There's a duplicate for this: #9993 

Please, update the old bug report, do NOT open new ones!
(from now on, update #9993 !)


 [2001-03-28 10:17 UTC] lopes at noite dot pt

The Output for every file (no matter filesize or file date) is :

<filename> 01/01/1970 0

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Aug 11 17:05:44 2022 UTC