#17952 [Fbk->Bgs]: is_a returns false if class is a superclass of the object.

From: Date: Wed, 11 Sep 2002 16:25:12 +0000
Subject: #17952 [Fbk->Bgs]: 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-19126@lists.php.net to get a copy of this message
ID: 17952 Updated by: sniper@php.net Reported By: sven@devcon.net -Status: Feedback +Status: Bogus Bug Type: Class/Object related Operating System: Linux PHP Version: 4.2.1 Previous Comments: ------------------------------------------------------------------------ [2002-07-03 20:25:45] sniper@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2002-07-01 12:05:41] sven@devcon.net 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 ------------------------------------------------------------------------ [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 (#19126) next »