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

Bug #12847 is_a deprecated warning messages
Submitted: 2008-01-07 20:05 UTC
From: jaek Assigned: jon
Status: Closed Package: Log (version 1.9.14)
PHP Version: 5.2.4 OS: RHEL4
Roadmaps: 1.9.15    
Subscription  


 [2008-01-07 20:05 UTC] jaek (Jake Rich)
Description: ------------ is_a() is evidently depricated now. Adding or removing a logging handler produces this annoying warning. Why I dont see a message for adding a handler is beyond my understanding. Test script: --------------- // this is a JSON RPC handler, DO NOT USE FIREBUG HANDLER FOR THIS OR IT FUCKS IT ALL UP $Logger->removeChild($LoggerFirebug); Expected result: ---------------- nothing. Actual result: -------------- in my file log: Jan 07 13:47:47 [warning] [Strict] is_a(): Deprecated. Please use the instanceof operator in /var/htdocs/jaeku/trunk/libs/Log/Log/composite.php on line 222. in my firebug log: if (('console' in window) || ('firebug' in console)) { console.warn("PHP [warning] [Strict] is_a(): Deprecated. Please use the instanceof operator in /var/htdocs/jaeku/trunk/libs/Log/Log/composite.php on line 222."); } </script>

Comments

 [2008-01-07 20:24 UTC] chagenbu (Chuck Hagenbuch)
Thank you for taking the time to write to us, but this is not a bug. Turn off E_STRICT error reporting.
 [2008-01-19 21:36 UTC] jon (Jon Parise)
Sorry, but your problem does not imply a bug in PEAR itself. For a list of more appropriate places to ask for help using PEAR, please visit http://pear.php.net/support/ as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PEAR. Sorry, there is unfortunately nothing we can do about this. We still need to maintain backwards compatibility with PHP4 for a while longer, and the instanceof operator is PHP5-specific. As Chuck suggests, the best solution is to turn of E_STRICT reporting. The is_a() function will continue to work as intended but without the warnings.