From:             [EMAIL PROTECTED]
Operating system: Sun
PHP version:      4.2.1
PHP Bug Type:     Apache related
Bug description:  Lastmodified header field not returned

It looks like to me that 4.2.1 with apache is not sending 
an appropriate lastmodified header, and this is mucking up 
javascripts that use document.lastModified. 

Here's a packet return from php (which lacks the 
lastmodified header):
<http://wwwx.cs.unc.edu/~hays/dev/javascript/
php_packet.txt>

And here's one through the same server not through php:
<http://wwwx.cs.unc.edu/~hays/dev/javascript/
non_php_packet.txt>

For an example of the problems this creates, if you look 
at:
<http://wwwx.cs.unc.edu/~hays/dev/javascript/
lastmodified.php> 
with IE, the current date is displayed, rather than the 
lastmodified date (from what I gather from the Mozilla bug 
list, IE will turn to the date field if last modified is 
not present). 

With IE:
<http://wwwx.cs.unc.edu/~hays/dev/javascript/
lastmodified.html>
shows a correct date.

In mozilla, lastmodified defaults to Jan 1 1970 if there's 
no lastmodified field, so it's also broken there.

For info on our server:
<http://wwwx.cs.unc.edu/~hays/dev/php/php_info.php>

thanks for such a good product!
bil



-- 
Edit bug report at http://bugs.php.net/?id=20885&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20885&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20885&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20885&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20885&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20885&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20885&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20885&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20885&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20885&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20885&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20885&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20885&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20885&r=isapi

Reply via email to