FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18656&edit=1

ID: 18656
Comment by: mtk
Reported By: spam at mtk dot co dot il
Summary: E_WARNING errors from is_a() usage in PEAR::isError on
PHP 5.4+
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
New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2011-07-09 01:58:06] dufuz

<div id="changeset">
<span class="removed">-Summary: E_WARNING errors from is_a() usage in
PEAR::isError</span>
<span class="added">+Summary: E_WARNING errors from is_a() usage in
PEAR::isError
on PHP 5.4+</span>
<span class="removed">-Status: Assigned</span>
<span class="added">+Status: Closed</span>
</div>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.

------------------------------------------------------------------------

[2011-07-09 01:38:49] dufuz

<div id="changeset">
<span class="removed">-Summary: E_WARNING errors from is_a()
usage</span>
<span class="added">+Summary: E_WARNING errors from is_a() usage in
PEAR::isError</span>
<span class="removed">-Assigned To:</span>
<span class="added">+Assigned To: dufuz</span>
</div>

------------------------------------------------------------------------

[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

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 15, '12 at 10:33a
activeJan 15, '12 at 10:33a
posts1
users1
websitepear.php.net

1 user in discussion

Mtk: 1 post

People

Translate

site design / logo © 2021 Grokbase