|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31056 php_std_date() returns invalid formatted date if y2k_compliance is On
Submitted: 2004-12-10 20:45 UTC Modified: 2004-12-12 16:50 UTC
From: Assigned:
Status: Closed Package: Date/time related
PHP Version: 5.0.1 OS: Linux 2.4 (Debian)
Private report: No CVE-ID:
 [2004-12-10 20:45 UTC]
If INI directive "y2k_compliance" is set to "On", php_std_date() returns an invalid HTTP date:

Sun, 06-Nov-1994 08:49:37 GMT - which should be:
Sun, 06 Nov 1994 08:49:37 GMT - (RFC 822/1123)

If "y2k_compliance" is set to "Off", php_std_date()
returns a valid RFC850 HTTP date, though(like: Fri, 10-Dec-04 19:38:00 GMT).


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-11 09:59 UTC]
It's just a matter of changing 2 hyphens to spaces at

 [2004-12-12 16:50 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Thu Nov 26 01:01:34 2015 UTC