Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.1

Bug #1748 Improper format of HTTP Date
Submitted: 2004-06-30 11:15 UTC
From: n dot dose at leo-media dot de Assigned: mike
Status: Closed Package: HTTP
PHP Version: 4.2.2 OS: Linux 2.4 (SUSE)
Roadmaps: (Not assigned)    
Comments Add Comment Add patch

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 10 - 7 = ?

 [2004-06-30 11:15 UTC] n dot dose at leo-media dot de
Description: ------------ The date output by HTTP::Date() is not formatted according to the HTTP spec with PHP 4.2.2, Linux 2.4.18, Apache 1.3.x. BUT - it works with: Linux 2.4.21, Apache 2 and PHP 4.3.3 SunOS 5.8, Apache 1.3 and PHP 4.3.6 Reproduce code: --------------- <?php include("/etc/phplib/HTTP.php"); echo HTTP::Date(time()); ?> Expected result: ---------------- One of the following formats (from HTTP spec): Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123 Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036 Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format Actual result: -------------- June, 30-Wed-04 10:59:51 GMT


 [2004-06-30 12:43 UTC] mike
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at Thanks for the report! If you want to send RFC822 dates, set y2k_compliance to ON in your php.ini Regards, Michael