#50899 [Csd->Fbk]: date('Y') returns 8632884266970 instead of 2010

From: Date: Mon, 01 Feb 2010 13:22:25 +0000
Subject: #50899 [Csd->Fbk]: date('Y') returns 8632884266970 instead of 2010
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-147102@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:           Closed
+Status:           Feedback
 Bug Type:         Date/time related
 Operating System: SuSE Linux 8.0 (i386)
 PHP Version:      5.2.12
 New Comment:

Please try using this snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




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

[2010-02-01 13:21:47] jani@php.net

Seems to be fixed in SVN.

------------------------------------------------------------------------

[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



Thread (12 messages)

« previous php.bugs (#147102) next »