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
 [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: Wed Apr 24 12:01:29 2024 UTC