From: dietmar dot rieder at tugraz dot at Operating system: Solaris 9 (sparc) PHP version: 5.2.10 PHP Bug Type: Date/time related Bug description: date('Y') does not return the correct year
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 bug report at http://bugs.php.net/?id=48651&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48651&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48651&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48651&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48651&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48651&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48651&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48651&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48651&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48651&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48651&r=support Expected behavior: http://bugs.php.net/fix.php?id=48651&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48651&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48651&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48651&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48651&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48651&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48651&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48651&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48651&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48651&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48651&r=mysqlcfg