|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-16 07:07 UTC] scottmac@php.net
[2009-07-16 08:36 UTC] trizt at iname dot com
[2009-07-16 12:40 UTC] scottmac@php.net
[2010-12-20 12:45 UTC] jani@php.net
-Package: Tidy
+Package: Date/time related
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Feb 04 02:00:01 2026 UTC |
Description: ------------ On Linux PPC 32bit (Gentoo with following options: apache2 bcmath berkdb bzip2 cjk cli crypt ctype curl curlwrappers exif ftp gd gdbm iconv imap json ldap mhash mysql mysqli ncurses nls pcntl pcre posix readline reflection session simplexml snmp soap sockets spl ssl suhosin tidy tokenizer truetype unicode wddx xml xmlreader xmlrpc xmlwriter xpm xsl yaz zip zlib), the date('Y') don't generate the current year, but 0000. A simple but not that nice work around is to make '20'.date('y') Using the date('Y') works on my x86_64, so I think the bug may be in just big endian machines (haven't tested this on my sparc yet). Reproduce code: --------------- <?php echo date('Y'); ?> Expected result: ---------------- 2009 Actual result: -------------- 0000