Bug #2415 Updated: filectime reports wrong time after Sep 1999. Possible overflow
| From: | Bug Database | Date: | Sun, 03 Oct 1999 01:53:20 +0000 |
| Subject: | Bug #2415 Updated: filectime reports wrong time after Sep 1999. Possible overflow | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11448@lists.php.net to get a copy of this message | ||
ID: 2415
Updated by: jah
Reported By: signal11@mediaone.net
Status: Open
Bug Type: Misbehaving function
Assigned To:
Comments:
If you change the second line to:
$mod_time=date("D M d H:i:s, Y",filectime("/home/httpd/html/" . $PHP_SELF));
the result should be 'Last modified: Wed Dec 31 18:00:00, 1969', which is
mysteriously 6 six hours before the epoch, just like your timezone is 6 hours
off from GMT.
What's happening here is that for some reason, filectime() can't stat your file
and returns false, which in this context is 0 (the epoch).
Check that the directory path is really right and try 'echo $PHP_SELF' too,
and check your server logs for errors. The problem is somewhere else than
in PHP.
Full Bug description available at: http://bugs.php.net/?id=2415