Bug 75029 - PHP with Apache 2.0: getlastmod function fails
Summary: PHP with Apache 2.0: getlastmod function fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: php
Version: 8.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Joe Orton
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-10-03 20:41 UTC by Kevin Worthington
Modified: 2007-04-18 16:47 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-11-10 21:47:59 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2003:017 0 high SHIPPED_LIVE : Updated PHP packages available 2003-01-21 05:00:00 UTC

Description Kevin Worthington 2002-10-03 20:41:02 UTC
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):
php-4.2.2-8.0.5
httpd-2.0.40-8

How Reproducible:
Always

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",
getlastmod());
3. View page in a web browser.

Actual Results:
generated page displays "Last modified: " (with no time and date info.)

Expected Results:
generated page displays "Last modified: Thu October 03 2002 04:03:09 PM" 

Additional Information:
A workaround is to do:
echo "Last modified: " . date("D F d Y h:i:s A",
filemtime($_SERVER["SCRIPT_FILENAME"]));

Comment 1 Joe Orton 2002-12-04 08:45:43 UTC
This is fixed in php-4.2.2-10 - thanks for the report.

Comment 2 Mark J. Cox 2003-02-05 08:40:18 UTC
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.

http://rhn.redhat.com/errata/RHSA-2003-017.html



Note You need to log in before you can comment on or make changes to this bug.