ID:               26548
 Updated by:       [EMAIL PROTECTED]
 Reported By:      phpnet at shredzone dot de
-Status:           Open
+Status:           Assigned
 Bug Type:         Output Control
 Operating System: Linux
 PHP Version:      4.3.3
-Assigned To:      
+Assigned To:      derick
 New Comment:

I'll check the RFC and fix the bug if there is one ...


Previous Comments:
------------------------------------------------------------------------

[2003-12-07 09:04:14] phpnet at shredzone dot de

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 this bug report at http://bugs.php.net/?id=26548&edit=1

Reply via email to