Req #32135 [Opn->Bgs]: Add class_hierarchy() function
| From: | johannes@php.net | Date: | Wed, 22 Dec 2010 02:31:20 +0000 |
| Subject: | Req #32135 [Opn->Bgs]: Add class_hierarchy() function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157199@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=32135&edit=1
ID: 32135
Updated by: johannes@php.net
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