|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-06-22 20:58 UTC] derick@php.net
[2009-06-22 22:35 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 10:00:01 2025 UTC |
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