#50899 [Opn->Csd]: date('Y') returns 8632884266970 instead of 2010
| From: | jani@php.net | Date: | Mon, 01 Feb 2010 13:21:47 +0000 |
| Subject: | #50899 [Opn->Csd]: date('Y') returns 8632884266970 instead of 2010 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-147101@lists.php.net to get a copy of this message | ||
ID: 50899
Updated by: jani@php.net
Reported By: werner at stuerenburg dot com
-Status: Open
+Status: Closed
-Bug Type: Output Control
+Bug Type: Date/time related
Operating System: SuSE Linux 8.0 (i386)
PHP Version: 5.2.12
New Comment:
Seems to be fixed in SVN.
Previous Comments:
------------------------------------------------------------------------
[2010-02-01 13:19:38] werner at stuerenburg dot com
sorry: should read "apply "
My provider asserts that this error does not apply to the cgi-version.
------------------------------------------------------------------------
[2010-02-01 13:18:18] werner at stuerenburg dot com
Description:
------------
See for example http://wordpress.org/support/topic/358394
or http://www.google.de/search?q="8632884266970"
This bug implies other errors, for example "Expiry date cannot have a
year greater then 9999" from setcookie as setcookie has to transfer the
timestamp into a date format.
Workaround: Restore version 5.2.11
My provider asserts that this error does not ally to the cgi-version.
Reproduce code:
---------------
echo date('Y);
Expected result:
----------------
2010
Actual result:
--------------
8632884266970
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50899&edit=1