From: phpnet at shredzone dot de
Operating system: Linux
PHP version: 4.3.3
PHP Bug Type: Output Control
Bug description: Malformed HTTP dates in headers
Description:
------------
If PHP generates headers containing a date, some of these dates are not
RFC 2616 (Sect. 3.3.1) / RFC 1123 compliant.
The RFCs require the day, hour, minute and second to have 2 digits (i.e.
having leading zeros). PHP misses the leading zero for the day, though.
Note that due to the nature of the bug, it is only reproducable in the
first 9 days of a month. :)
Reproduce code:
---------------
<?php
session_cache_limiter('public');
set_time_limit(600);
session_start();
?>
<html><body>foo</body></html>
Expected result:
----------------
Expires: Sun, 07 Dec 2003 16:57:31 GMT
Cache-Control: public, max-age=10800
Last-Modified: Sun, 07 Dec 2003 13:57:28 GMT
Actual result:
--------------
Expires: Sun, 7 Dec 2003 16:57:31 GMT
Cache-Control: public, max-age=10800
Last-Modified: Sun, 7 Dec 2003 13:57:28 GMT
--
Edit bug report at http://bugs.php.net/?id=26548&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26548&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26548&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26548&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26548&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26548&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26548&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26548&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26548&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26548&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26548&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26548&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26548&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26548&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26548&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26548&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26548&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26548&r=float