#49283 [Fbk->Bgs]: date('Y') display error
| From: | scottmac@php.net | Date: | Tue, 18 Aug 2009 08:46:53 +0000 |
| Subject: | #49283 [Fbk->Bgs]: date('Y') display error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141184@lists.php.net to get a copy of this message | ||
ID: 49283
Updated by: scottmac@php.net
Reported By: ht0315 at gmail dot com
-Status: Feedback
+Status: Bogus
Bug Type: Date/time related
Operating System: Solaris 10 sparc
PHP Version: 5.2.10
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
Duplicate of bug #48276
It's fixed in SVN already and only affects big endian machines.
Previous Comments:
------------------------------------------------------------------------
[2009-08-18 07:17:20] jani@php.net
Please try using this snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
I can not reproduce this. date('Y') outputs 2009 for me.
------------------------------------------------------------------------
[2009-08-18 05:42:25] ht0315 at gmail dot com
Description:
------------
date('Y') display error, print: 0000
Reproduce code:
---------------
<?php
echo date('y-m-d H:i:s');
echo date('Y-m-d H:i:s');
echo date('ymd');
echo date('Y');
echo date('y');
echo time();
echo date('Y-m-d', time());
echo date('y-m-d', time());
?>
Expected result:
----------------
09-08-18 13:18:36
2009-08-18 13:18:36
090818
2009
09
1250572716
2009-08-18
09-08-18
Actual result:
--------------
09-08-18 13:18:13
0000-08-18 13:18:13
090818
0000
09
1250572693
0000-08-18
09-08-18
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49283&edit=1