php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10363 filemtime() cannot stat the minutes of a file.
Submitted: 2001-04-17 12:54 UTC Modified: 2001-06-03 04:20 UTC
From: pj at waskiewicz dot org Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.4pl1 OS: Linux 2.2.12-20
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pj at waskiewicz dot org
New email:
PHP Version: OS:

 

 [2001-04-17 12:54 UTC] pj at waskiewicz dot org
<?

clearstatcache();
$modified = date("F j, Y, g:i a", filemtime("/home/pj/www/scripts/photos.html"));
print $modified;

?>

This uses the same configuration as another Linux box running 2.2.16 and another box running Solaris 8, where it works on both.  It will stat the date, hour, and seconds properly, but cannot stat the minutes.  Just prints 00 all the time.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-03 04:20 UTC] sniper@php.net
Works for me just fine. Maybe it's a bug in older kernel/glibc?  As it works for you too with newer kernel/glibc, closed.


--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 12:01:32 2024 UTC