Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0a4

Bug #20030 Incompatibilites with PHP 5.4x
Submitted: 2013-08-07 22:04 UTC
From: sstringer Assigned:
Status: Wont fix Package: Date (version 1.5.0a3)
PHP Version: 5.4.10 OS: OS X
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 39 + 17 = ?

 
 [2013-08-07 22:04 UTC] sstringer (Steve Stringer)
Description: ------------ After upgrading to PHP 5.4.10, PEAR::DATE is now throwing a boat load of static context errors. Test script: --------------- Strict Standards: Non-static method Date_TimeZone::isValidID() should not be called statically in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/TimeZone.php on line 4717 Strict Standards: Non-static method Date_TimeZone::setDefault() should not be called statically in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/TimeZone.php on line 4720 Strict Standards: Non-static method Date_TimeZone::isValidID() should not be called statically in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/TimeZone.php on line 192 Strict Standards: Non-static method Date_TimeZone::getDefault() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 201 Strict Standards: Non-static method Date_TimeZone::isValidID() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 576 Strict Standards: Non-static method Date_TimeZone::isValidID() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 668 Strict Standards: Non-static method Date_Calc::dateToDays() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 774 Strict Standards: Non-static method Date_Calc::daysToDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 778 Strict Standards: Non-static method Date_Calc::dateFormat() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 316 Strict Standards: Non-static method Date_Calc::isValidDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 137 Strict Standards: Non-static method Date_Calc::dateToDays() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 852 Strict Standards: Non-static method Date_Calc::daysToDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 856 Strict Standards: Non-static method Date_Calc::dateFormat() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 316 Strict Standards: Non-static method Date_Calc::isValidDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 137 Strict Standards: Non-static method Date_Calc::getWeekdayAbbrname() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 394 Strict Standards: Non-static method Date_Calc::getWeekdayFullname() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 619 Strict Standards: Non-static method Date_Calc::getWeekDays() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 586 Strict Standards: Non-static method Date_Calc::dayOfWeek() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 587 Strict Standards: Non-static method Date_Calc::getMonthFullname() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 403 Strict Standards: Non-static method Date_Calc::getMonthNames() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 642 Strict Standards: Non-static method Date_TimeZone::getDefault() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 201 Strict Standards: Non-static method Date_TimeZone::isValidID() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 576 Strict Standards: Non-static method Date_TimeZone::isValidID() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 668 Strict Standards: Non-static method Date_Calc::dateToDays() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 774 Strict Standards: Non-static method Date_Calc::daysToDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 778 Strict Standards: Non-static method Date_Calc::dateFormat() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 316 Strict Standards: Non-static method Date_Calc::isValidDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 137 Strict Standards: Non-static method Date_Calc::dateToDays() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 852 Strict Standards: Non-static method Date_Calc::daysToDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 856 Strict Standards: Non-static method Date_Calc::dateFormat() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 316 Strict Standards: Non-static method Date_Calc::isValidDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 137 Strict Standards: Non-static method Date_Calc::getWeekdayAbbrname() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 394 Strict Standards: Non-static method Date_Calc::getWeekdayFullname() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 619 Strict Standards: Non-static method Date_Calc::getWeekDays() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 586 Strict Standards: Non-static method Date_Calc::dayOfWeek() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 587 Strict Standards: Non-static method Date_Calc::getMonthFullname() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 403 Strict Standards: Non-static method Date_Calc::getMonthNames() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 642 Strict Standards: Non-static method Date_TimeZone::getDefault() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 201 Strict Standards: Non-static method Date_TimeZone::isValidID() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 576 Strict Standards: Non-static method Date_TimeZone::isValidID() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 668 Strict Standards: Non-static method Date_Calc::dateToDays() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 774 Strict Standards: Non-static method Date_Calc::daysToDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 778 Strict Standards: Non-static method Date_Calc::dateFormat() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 316 Strict Standards: Non-static method Date_Calc::isValidDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 137 Strict Standards: Non-static method Date_Calc::dateToDays() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 852 Strict Standards: Non-static method Date_Calc::daysToDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 856 Strict Standards: Non-static method Date_Calc::dateFormat() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 316 Strict Standards: Non-static method Date_Calc::isValidDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 137 Strict Standards: Non-static method Date_Calc::getWeekdayAbbrname() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 394 Strict Standards: Non-static method Date_Calc::getWeekdayFullname() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 619 Strict Standards: Non-static method Date_Calc::getWeekDays() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 586 Strict Standards: Non-static method Date_Calc::dayOfWeek() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 587 Strict Standards: Non-static method Date_Calc::getMonthFullname() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 403 Strict Standards: Non-static method Date_Calc::getMonthNames() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 642 Strict Standards: Non-static method Date_TimeZone::getDefault() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 201 Strict Standards: Non-static method Date_TimeZone::isValidID() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 576 Strict Standards: Non-static method Date_TimeZone::isValidID() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 668 Strict Standards: Non-static method Date_Calc::dateToDays() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 774 Strict Standards: Non-static method Date_Calc::daysToDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 778 Strict Standards: Non-static method Date_Calc::dateFormat() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 316 Strict Standards: Non-static method Date_Calc::isValidDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 137 Strict Standards: Non-static method Date_Calc::dateToDays() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 852 Strict Standards: Non-static method Date_Calc::daysToDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 856 Strict Standards: Non-static method Date_Calc::dateFormat() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 316 Strict Standards: Non-static method Date_Calc::isValidDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 137 Strict Standards: Non-static method Date_Calc::getWeekdayAbbrname() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 394 Strict Standards: Non-static method Date_Calc::getWeekdayFullname() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 619 Strict Standards: Non-static method Date_Calc::getWeekDays() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 586 Strict Standards: Non-static method Date_Calc::dayOfWeek() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 587 Strict Standards: Non-static method Date_Calc::getMonthFullname() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 403 Strict Standards: Non-static method Date_Calc::getMonthNames() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 642 Strict Standards: Non-static method Date_TimeZone::getDefault() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 201 Strict Standards: Non-static method Date_TimeZone::isValidID() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 576 Strict Standards: Non-static method Date_TimeZone::isValidID() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 668 Strict Standards: Non-static method Date_Calc::dateToDays() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 774 Strict Standards: Non-static method Date_Calc::daysToDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 778 Strict Standards: Non-static method Date_Calc::dateFormat() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 316 Strict Standards: Non-static method Date_Calc::isValidDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 137 Strict Standards: Non-static method Date_Calc::dateToDays() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 852 Strict Standards: Non-static method Date_Calc::daysToDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 856 Strict Standards: Non-static method Date_Calc::dateFormat() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 316 Strict Standards: Non-static method Date_Calc::isValidDate() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 137 Strict Standards: Non-static method Date_Calc::getWeekdayAbbrname() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 394 Strict Standards: Non-static method Date_Calc::getWeekdayFullname() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 619 Strict Standards: Non-static method Date_Calc::getWeekDays() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 586 Strict Standards: Non-static method Date_Calc::dayOfWeek() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 587 Strict Standards: Non-static method Date_Calc::getMonthFullname() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date.php on line 403 Strict Standards: Non-static method Date_Calc::getMonthNames() should not be called statically, assuming $this from incompatible context in /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/Calc.php on line 642 Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/bin/php/php5.4.10/lib/php/Date/TimeZone.php:4717) in /Users/ixnayus/Sites/MySites/Games2U/G2UWare/html/index.php on line 244 Expected result: ---------------- No static assignment errors thrown. Actual result: -------------- Dozens of static assignment errors thrown.

Comments

 [2013-08-08 09:15 UTC] alan_k (Alan Knowles)
you can turn off E_STRICT for the time being - it needs patch to add static infront of all the methods.
 [2013-08-08 20:10 UTC] sstringer (Steve Stringer)
Thanks, but I need E_STRICT for my own development. Since DATE is called from the top of my stack, these errors are barfed all over every page on my dev site. It also looks like this PEAR package hasn't been touched in years, so I'll be looking for a replacement.
 [2013-10-08 10:07 UTC] cweiske (Christian Weiske)
-Status: Open +Status: Wont fix
Use PHP's in-built DateTime class instead of this Date package.