Edit report at http://pear.php.net/bugs/bug.php?id=18656&edit=1
ID: 18656
Updated by: [email protected]
Reported By: philip at roshambo dot org
-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
Type: Bug
Package: PEAR
Operating System: Mac OS X
Package Version: 1.9.4
PHP Version: 5_3 SVN-2011-07-07
Assigned To: dufuz
Roadmap Versions:
New Comment:
-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.
Previous Comments:
------------------------------------------------------------------------
[2011-07-09 01:38:49] dufuz
-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-07 22:30:40] philip
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
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18656&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.