Bug #17952 Updated: is_a returns false if class is a superclass of the object.

From: Date: Mon, 01 Jul 2002 16:05:41 +0000
Subject: Bug #17952 Updated: is_a returns false if class is a superclass of the object.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12670@lists.php.net to get a copy of this message
ID: 17952 Updated by: sven@devcon.net Reported By: sven@devcon.net Status: Open Bug Type: Class/Object related Operating System: Linux PHP Version: 4.2.1 New Comment: I can give a copy of the commercial application where this happens to the php-developer who wants to fix this bug. Best regards, sven Previous Comments: ------------------------------------------------------------------------ [2002-06-24 14:00:06] sven@devcon.net is_a() behaves like return get_class($object) == strtolower($class); but should behave like return get_class($object) == strtolower($class) || is_subclass_of($object, $class); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17952&edit=1

« previous php.bugs (#12670) next »