Red Hat Bugzilla – Bug 75029
PHP with Apache 2.0: getlastmod function fails
Last modified: 2007-04-18 12:47:05 EDT
Description of Problem:
PHP (php-4.2.2-8.0.5) with Apache (httpd-2.0.40-8) fails when trying to use the
getlastmod function, which produces the "Last Modified: Time/date" info.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. have apache and php installed on Redhat Linux 8.0 (Psyche)
2. make a php page with: echo "Last modified: " . date ("D F d Y h:i:s A",
3. View page in a web browser.
generated page displays "Last modified: " (with no time and date info.)
generated page displays "Last modified: Thu October 03 2002 04:03:09 PM"
A workaround is to do:
echo "Last modified: " . date("D F d Y h:i:s A",
This is fixed in php-4.2.2-10 - thanks for the report.
An errata has been issued which should help the problem described in this bug report.
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen
this bug report if the solution does not work for you.