Req #62343 [Asn]: Show class_alias In get_declared_classes( )
| From: | pajoye@php.net | Date: | Fri, 22 Jun 2012 09:37:10 +0000 |
| Subject: | Req #62343 [Asn]: Show class_alias In get_declared_classes( ) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-171438@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62343&edit=1
ID: 62343
Updated by: pajoye@php.net
Reported by: valentiny510 at yahoo dot es
Summary: Show class_alias In get_declared_classes( )
Status: Assigned
Type: Feature/Change Request
Package: Class/Object related
Operating System: XP
PHP Version: 5.4.4
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
Also bring that on internals please. There are room for discussions here.
Previous Comments:
------------------------------------------------------------------------
[2012-06-22 09:33:43] pajoye@php.net
Aliases are not declared classes but ... aliases :)
I don't think it should be shown through that.
However, using an optional argument, it could then return:
Array
(
['a'] => NULL
['b'] => 'a'
)
for example.
------------------------------------------------------------------------
[2012-06-22 09:31:45] laruence@php.net
Dmitry, could you please review this patch? there is one thing I am not sure is,
there was a :
if ((hash_key->nKeyLength==0 || hash_key->arKey[0]!=0)
I am not sure about the first condition, IMO the key should not be a number in
CG/EG(class_table), so I remove that condition, did I miss something?
thanks
------------------------------------------------------------------------
[2012-06-22 09:29:29] laruence@php.net
The following patch has been added/updated:
Patch Name: bug62343.phpt
Revision: 1340357369
URL: https://bugs.php.net/patch-display.php?bug=62343&patch=bug62343.phpt&revision=1340357369
------------------------------------------------------------------------
[2012-06-22 09:28:45] laruence@php.net
The following patch has been added/updated:
Patch Name: bug62343.patch
Revision: 1340357325
URL: https://bugs.php.net/patch-display.php?bug=62343&patch=bug62343.patch&revision=1340357325
------------------------------------------------------------------------
[2012-06-18 01:01:23] valentiny510 at yahoo dot es
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 ..
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=62343
--
Edit this bug report at https://bugs.php.net/bug.php?id=62343&edit=1