Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP 5.2.10 bug with date("Y")
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
McTango
n00b
n00b


Joined: 11 Dec 2004
Posts: 66
Location: Formosa - Argentina

PostPosted: Mon Jul 06, 2009 12:07 pm    Post subject: PHP 5.2.10 bug with date("Y") Reply with quote

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.
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum