SearchSearch   

Problem with PEAR + PHP5 + is_a function

 
   Webmaster Forums (Home) -> PHP RSS
Next:  PHP being interpreted and saved  
Author Message
grand220

External


Since: Aug 08, 2007
Posts: 2



(Msg. 1) Posted: Wed Aug 08, 2007 2:10 pm
Post subject: Problem with PEAR + PHP5 + is_a function
Archived from groups: comp>lang>php (more info?)

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.
Back to top
grand220

External


Since: Aug 08, 2007
Posts: 2



(Msg. 2) Posted: Wed Aug 08, 2007 8:25 pm
Post subject: Re: Problem with PEAR + PHP5 + is_a function
Archived from groups: per prev. post (more info?)

On Aug 8, 11:15 pm, Michael Fesser <neti....TakeThisOut@gmx.de> 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!
Back to top
Michael Fesser

External


Since: Nov 12, 2005
Posts: 1141



(Msg. 3) Posted: Thu Aug 09, 2007 12:15 am
Post subject: Re: Problem with PEAR + PHP5 + is_a function
Archived from groups: per prev. post (more info?)

..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
Back to top
Display posts from previous:   
       Webmaster Forums (Home) -> PHP
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum