| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2010-12-14 12:09 UTC] jani@php.net
 
-Status:      Open
+Status:      Closed
-Package:     Feature/Change Request
+Package:     Class/Object related
-Assigned To:
+Assigned To: jani
  [2010-12-14 12:09 UTC] jani@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 07:00:01 2025 UTC | 
unfortunately the function is_subclass_of does not accept class names in both arguments like get_parent_class since 4.0.5. it would be nice if you could use is_subclass_of in the following way: is_subclass_of($foo,"bar") true if $foo is an object of a subclass of bar (this is how it works now) is_subclass_of("foo","bar") true if foo is a subclass of bar (a wrote a function to do this, see my note on is_subclass_of) is_subclass_of("foo",$bar) true if foo is a subclass of the class $bar = is_subclass_of("foo",get_class($bar)); is_subclass_of($foo,$bar) true if $foo is an object of the class of $bar thanx a lot! Jakob