[PATCH] get_declared_classes NS support and a little bug

php.internals

Tal Peer

23 years ago
Hello, I've changed get_declared_classes behaviour a bit in order to add namespaces support (NS::class format). See attached patch. Currently, due to what seems to me as a bug, it outputs every user-defined class (inside a namespace, that is) twice. I checked, and EG(class_table) seems to contain each namespace entry twice. This can be workedaround with a little hack, but i guess it should be fixed.
-- Tal Peer tal@php.net

Tal Peer

23 years ago
On Mon, 24 Mar 2003, Tal Peer wrote: Ok, attached is a revised patch that also compiles in zts :)
> Hello, > I've changed get_declared_classes behaviour a bit in order to add > namespaces support (NS::class format). See attached patch. > > Currently, due to what seems to me as a bug, it outputs every user-defined > class (inside a namespace, that is) twice. I checked, and EG(class_table) > seems to contain each namespace entry twice. This can be workedaround with > a little hack, but i guess it should be fixed. > > -- > Tal Peer > tal@php.net
-- Tal Peer tal@php.net