#31056 [NEW]: php_std_date() returns invalid formatted date if y2k_compliance is On
From: mike@php.net
Operating system: Linux 2.4 (Debian)
PHP version: 5.0.1
PHP Bug Type: Date/time related
Bug description: php_std_date() returns invalid formatted date if y2k_compliance is On
Description:
------------
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).
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
--
Edit bug report at http://bugs.php.net/?id=31056&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31056&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31056&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31056&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31056&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31056&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31056&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31056&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31056&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31056&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31056&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31056&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31056&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31056&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31056&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31056&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31056&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31056&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31056&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31056&r=mysqlcfg
Thread (3 messages)
- mike@php.net