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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
29 - 25 = ?
Subscribe to this entry?

 
 [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 May 06 01:01:31 2024 UTC