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

Bug #17560 Non-static method cannot be called statically
Submitted: 2010-07-05 06:45 UTC Modified: 2010-07-24 12:41 UTC
From: vipsoft Assigned: dufuz
Status: Wont fix Package: PEAR (version 1.9.1)
PHP Version: 5.3.2 OS: Ubuntu 10.04
Roadmaps: (Not assigned)    
Subscription  


 [2010-07-05 06:45 UTC] vipsoft (Anthon Pang)
Description: ------------ This can be triggered by PEAR itself, e.g., PEAR::raiseError, or other packages, e.g., HTML_QuickForm calls PEAR::isError. Perhaps change these to static methods, and add a singleton to handle references to $this?

Comments

 [2010-07-24 12:41 UTC] dufuz (Helgi Þormar Þorbjörnsson)
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: dufuz
This is a PHP 4 package that won't get upgraded to PHP 5 only functionality; In fact what you are seeing are simple notices. PEAR::isError can also be called via an object, and a lot of people do that, so we would be causing them problems. You might be better of using QuickForm2 (which is a PHP 5 package) that uses proper error mechanism, and same can be said about other packages; Or simply ignore those notices. I am sorry :-/