#48651 [Fbk->Bgs]: date('Y') does not return the correct year
ID: 48651
Updated by: scottmac@php.net
Reported By: dietmar dot rieder at tugraz dot at
-Status: Feedback
+Status: Bogus
Bug Type: Date/time related
Operating System: Solaris 9 (sparc)
PHP Version: 5.2.10
New Comment:
Duplicate of http://bugs.php.net/bug.php?id=48276
Fixed in CVS.
Previous Comments:
------------------------------------------------------------------------
[2009-06-22 20:58:09] derick@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2009-06-22 20:02:33] dietmar dot rieder at tugraz dot at
Description:
------------
On Sparc Solaris 9 date('Y') does not return the correct date.
#uname -a
SunOS webmail02 5.9 Generic_118558-11 sun4u sparc SUNW,Sun-Fire-480R
# date +'%Y'
2009
# php -v -n
PHP 5.2.10 (cli) (built: Jun 19 2009 14:42:42)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
# php -n
<?
print date('Y');
?>
0000
In php-5.2.9 the problem did not exist, it is also not existing in
php-5.2.10 on Solaris 10 (x86)
Reproduce code:
---------------
<?
print date('Y');
?>
Expected result:
----------------
2009
Actual result:
--------------
0000
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48651&edit=1
Thread (3 messages)