Problem with PEAR + PHP5 + is_a function

Problem with PEAR + PHP5 + is_a function

am 08.08.2007 23:10:59 von grand220

FreeBSD 6.2
PHP 5.2.3
PEAR 1.6.1

Keep getting the below error:

"Encountered error 2048 in /usr/local/share/pear/PEAR.php, line 281:
is_a(): Deprecated. Please use the instanceof operator"

I look through PEAR.php and it's full of is_a() functions, if it's
been deprecated in PHP5, why is it there?
I'm sure when I wrote this script a month ago I didn't get these
errors.

Re: Problem with PEAR + PHP5 + is_a function

am 09.08.2007 00:15:39 von Michael Fesser

..oO(grand220@googlemail.com)

>Keep getting the below error:
>
>"Encountered error 2048 in /usr/local/share/pear/PEAR.php, line 281:
>is_a(): Deprecated. Please use the instanceof operator"
>
>I look through PEAR.php and it's full of is_a() functions, if it's
>been deprecated in PHP5, why is it there?

PEAR itself and most of its classes are written for PHP 4.

Micha

Re: Problem with PEAR + PHP5 + is_a function

am 09.08.2007 05:25:52 von grand220

On Aug 8, 11:15 pm, Michael Fesser wrote:
> PEAR itself and most of its classes are written for PHP 4.

Now I know why I didn't get that error when I first did the code a
month ago, it's because I added set_error_handler("On_Error"); to the
script at the top, before it was just hidden away, doh!