Re: Enumerate visible class names in current scope

From: Date: Mon, 19 May 2014 09:04:47 +0000
Subject: Re: Enumerate visible class names in current scope
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-74348@lists.php.net to get a copy of this message
Hi Kris,

Thanks for the quick reply. I found class_table HashTable structure in
that zend function.

But, do you know how to tell between user-defined classes and predefined ones?



On Mon, May 19, 2014 at 4:44 PM, Kris Craig <kris.craig@gmail.com> wrote:
>
>
>
> On Mon, May 19, 2014 at 1:28 AM, Aaron Lewis <the.warl0ck.1989@gmail.com>
> wrote:
>>
>> Hi,
>>
>> Is it possible to enumerate all visible class name in current scope?
>>
>> If not names, a zval like structure is nice as well.
>>
>> Thanks!
>>
>> --
>> Best Regards,
>> Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
>> Finger Print:   9F67 391B B770 8FF6 99DC  D92D 87F6 2602 1371 4D33
>>
>> --
>> PHP Internals - PHP Runtime Development Mailing List
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
> I know you can use get_declared_classes() to iterate through ALL declared
> classes, but I don't know how it behaves with regard to scope and
> visibility.  I do know that it includes both user-defined and predefined
> classes in its output.
>
> --Kris
>



-- 
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print:   9F67 391B B770 8FF6 99DC  D92D 87F6 2602 1371 4D33


Thread (4 messages)

« previous php.internals (#74348) next »