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

Bug #18656 E_WARNING errors from is_a() usage in PEAR::isError on PHP 5.4+
Submitted: 2011-07-08 02:30 UTC
From: philip Assigned: dufuz
Status: Closed Package: PEAR (version 1.9.4)
PHP Version: 5_3 SVN-2011-07-07 OS: Mac OS X
Roadmaps: (Not assigned)    
Subscription  


 [2011-07-08 02:30 UTC] philip (Philip Olson)
Description: ------------ PHP 5.4 (and I assume 5.3.7-dev) as of July 4, 2011 produces the following errors when installing PEAR: Warning: Unknown class passed as parameter in phar:///private/tmp/php5.4-201107071830/pear/install-pear- nozlib.phar/PEAR.php on line 252 This is due to the following change in PHP: https://bugs.php.net/bug.php?id=53727 It added an E_WARNING when a string is passed into is_a() as the first parameter, as the changed is_a_variation_001.phpt test indicates. I suspect the change will be removed from 5_3 before 5.3.7 is released, but am not certain at this point. Regardless, the PEAR code may as well be updated. Test script: --------------- // I can only reproduce with a new PEAR install make install Expected result: ---------------- No E_WARNINGS Actual result: -------------- About 40 E_WARNING errors

Comments

 [2011-07-09 05:38 UTC] dufuz (Helgi Þormar Þorbjörnsson)
-Summary: E_WARNING errors from is_a() usage +Summary: E_WARNING errors from is_a() usage in PEAR::isError -Assigned To: +Assigned To: dufuz
 [2011-07-09 05:58 UTC] dufuz (Helgi Þormar Þorbjörnsson)
-Summary: E_WARNING errors from is_a() usage in PEAR::isError +Summary: E_WARNING errors from is_a() usage in PEAR::isError on PHP 5.4+ -Status: Assigned +Status: Closed
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.
 [2012-01-15 15:54 UTC] mtk (Motty Katan)
Thank you for solving this. 1. When is the next version of PEAR ? 2. I saw there is a version 2 coming up, but it doesn't includes (officially) this bug. Motty