Description:
------------
In PHP-5.3.0 from CVS 2008-02-26 (it is not in dropdown list of PHP versions) in many case using pear, get a lot of errors like:
PHP Unknown error: is_a(): Deprecated. Please use the instanceof operator in /usr/share/pear/PEAR.php on line 281
AND
PHP Notice: Undefined offset: 8192 in /usr/share/pear/pearcmd.php on line 424
AND
PHP Unknown error: get_magic_quotes_runtime() [http://php.net/function.get-magic-quotes-runtime]: This function is deprecated and removed in PHP 6. See http://php.net/{migrate}#get_magic_quotes_runtime for details. in /usr/share/pear/PEAR/Registry.php on line 1047
PHP Unknown error: set_magic_quotes_runtime() [http://php.net/function.set-magic-quotes-runtime]: This function is deprecated and removed in PHP 6. See http://php.net/{migrate}#set_magic_quotes_runtime for details. in /usr/share/pear/PEAR/Registry.php on line 1048
AND
PHP Unknown error: Assigning the return value of new by reference is deprecated in /usr/share/pear/PE
AR/Frontend.php on line 90
Last message perhaps is also relevant to http://pear.php.net/bugs/bug.php?id=10196 , http://pear.php.net/bugs/bug.php?id=12616 , http://pear.php.net/bugs/bug.php?id=12071
Test script:
---------------
Just run command:
$pear list
Expected result:
----------------
Normal list of installed pear-packages, without lots (for example I get ~174Kb of trash!) errors.
Actual result:
--------------
PHP Notice: Undefined offset: 8192 in /usr/share/pear/PEAR/Frontend.php on line 90
PHP Stack trace:
PHP 1. {main}() /usr/share/pear/pearcmd.php.orig:0
PHP 2. error_handler() /usr/share/pear/pearcmd.php.orig:0
Notice: Undefined offset: 8192 in /usr/share/pear/PEAR/Frontend.php on line 90
Call Stack:
0.0042 489264 1. {main}() /usr/share/pear/pearcmd.php.orig:0
0.0217 649072 2. error_handler() /usr/share/pear/pearcmd.php.orig:0
And many, many more Errors, as described before.

>PEAR supports PHP4, which does not have the instanceof operator.
Ok, but it is not PHP5 compatible in this case!
If you wish backward capabilities, as I wrote before, fast way is catch this "Deprecated" errors and safely ignore it.

This bug has been fixed in CVS.
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.