Re: use PEAR::isError()

From: Date: Sun, 06 Feb 2005 10:21:00 +0000
Subject: Re: use PEAR::isError()
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-35970@lists.php.net to get a copy of this message
Lukas Smith wrote:
Especially since is_a() is deprecated already for PHP5.
Which is totally foobar in my POV since instanceof doesn't provide the same functionality like is_a() (i.e. you need to load the class, or check beforehand that the class even exists). is_a($object, $class) == (class_exists($class) && ($object instanceof $class)) Funny, eh? ;) Just my 0.02Ç -- Michael

« previous php.pear.dev (#35970) next »