#50899 [Opn]: date('Y') returns 8632884266970 instead of 2010

From: Date: Mon, 01 Feb 2010 13:19:38 +0000
Subject: #50899 [Opn]: date('Y') returns 8632884266970 instead of 2010
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-147100@lists.php.net to get a copy of this message
 ID:               50899
 User updated by:  werner at stuerenburg dot com
 Reported By:      werner at stuerenburg dot com
 Status:           Open
 Bug Type:         Output Control
 Operating System: SuSE Linux 8.0 (i386)
 PHP Version:      5.2.12
 New Comment:

sorry: should read "apply "

My provider asserts that this error does not apply to the cgi-version.


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

[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



Thread (12 messages)

« previous php.bugs (#147100) next »