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

From: Date: Thu, 04 Jul 2002 00:25:46 +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-13054@lists.php.net to get a copy of this message
ID: 17952 Updated by: sniper@php.net Reported By: sven@devcon.net -Status: Open +Status: Feedback Bug Type: Class/Object related Operating System: Linux PHP Version: 4.2.1 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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 (#13054) next »