Edit report at https://bugs.php.net/bug.php?id=62343&edit=1
ID: 62343
Comment by: valentiny510 at yahoo dot es
Reported by: valentiny510 at yahoo dot es
Summary: Show class_alias In get_declared_classes( )
Status: Open
Type: Feature/Change Request
Package: Class/Object related
Operating System: XP
PHP Version: 5.4.4
Block user comment: N
Private report: N
New Comment:
P.S. Also will be nice to add an argument to various functions like
get_declared_classes( $user_classes = true/false )
get_declared_interfaces( $user_interfaces = true/false )
etc...
and show ONLY the "user declared" classes not the full list ..
Previous Comments:
------------------------------------------------------------------------
[2012-06-17 16:22:25] valentiny510 at yahoo dot es
Description:
------------
Maybe the name of the function get_"declared"_classes is to obvious..
to show only the "declared" classes and not the referenced one but if it true
do not duplicate them, or show the name of the alias
Test script:
---------------
class a { }
class_alias(a, b);
print_r(get_declared_classes( ));
Expected result:
----------------
Array
(
[0] => a
[1] => b
)
Actual result:
--------------
Array
(
[0] => a
[1] => a
)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62343&edit=1