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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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 May 06 07:01:32 2024 UTC