DB::isError() in DB 1.6.4

From: Date: Wed, 30 Jun 2004 07:43:39 +0000
Subject: DB::isError() in DB 1.6.4
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-31358@lists.php.net to get a copy of this message
Hi I don't know if I'm in the right place to ask the question, but it concern the dev. Why DB::isError() use "return is_a($value, 'DB_Error');" instead of "return (is_object($value) && (get_class($value) == 'db_error' || is_subclass_of($value, 'db_error')));" The new version (i.e. is_a()) limit the usage to PHP 4.2.0 or higher. I change back to old version and it work perfectly with PHP 4.1.2 So why not changing back to old version? To keep compatibility.

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