Edit report at http://bugs.php.net/bug.php?id=32135&edit=1

 ID:                 32135
 Updated by:         [email protected]
 Reported by:        anferr at mecon dot gov dot ar
 Summary:            Add class_hierarchy() function
-Status:             Open
+Status:             Bogus
 Type:               Feature/Change Request
-Package:            Feature/Change Request
+Package:            *General Issues
 Operating System:   any
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

it is trivial to create this from reflection. But you have to consider
interfaces, too. For adding such a thing to the distribution the use
cases are too limited.


Previous Comments:
------------------------------------------------------------------------
[2005-02-28 18:51:04] anferr at mecon dot gov dot ar

Description:
------------
It'll be very useful to add a class_hierarchy() function

Proposed signature:



array class_hierarchy(mixed $object)



$object can be an object, or a string class name.

returns an array with class hierarchy (ordered from obj to first parent,
or reverse, but ordered :-) )



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=32135&edit=1

Reply via email to