ID: 48276
Updated by: derick@php.net
Reported By: info at programmiernutte dot net
Status: Feedback
Bug Type: Date/time related
Operating System: Max OS X 10.4 PPC
PHP Version: 5.3.0RC2
New Comment:
Bleh, wrong link. Anyway, I can not reproduce this on Linux.
Previous Comments:
------------------------------------------------------------------------
[2009-05-14 08:39:43] derick@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2009-05-14 08:17:22] info at programmiernutte dot net
Description:
------------
After upgrading to 5.3.0 RC2, date('Y') always returns 0000. No php.ini
setting (date.timezone) seems to have any influence.
date('y') works as expected and returns 09.
This Problem did not occur with 5.3.0RC1.
Reproduce code:
---------------
marvin:~/src/php-5.3.0RC2 thomas$ ./sapi/cli/php
<?=date('Y') ?>
0000
Expected result:
----------------
marvin:~/src/php-5.3.0RC2 thomas$ ./sapi/cli/php
<?=date('Y') ?>
2009
Actual result:
--------------
marvin:~/src/php-5.3.0RC2 thomas$ ./sapi/cli/php
<?=date('Y') ?>
0000
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48276&edit=1