McTango n00b


Joined: 11 Dec 2004 Posts: 66 Location: Formosa - Argentina
|
Posted: Mon Jul 06, 2009 12:07 pm Post subject: PHP 5.2.10 bug with date("Y") |
|
|
After upgrading PHP from 5.2.9-r2 to 5.2.10, the function date("Y") always returns 0000.
And no matter what $a_valid_date you choose, date("Y",$a_valid_date) always return 0000.
The "y" parameter return the correct two-digits year, so the problem is with "Y" parameter.
Seems to be that PHP Bug #48276 applies to Sparc machines.
The only solution i've found is downgrade PHP to 5.2.9-r2: Code: | echo ">=dev-lang/php-5.2.10" >> /etc/portage/package.mask
emerge -uDN dev-lang/php |
_________________ Charly Tango
Formosa - Argentina
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
To emerge, or not to emerge: that is the question.
_________________ |
|