# [PATCH] get_declared_classes NS support and a little bug

- Thread: https://externals.io/message/212
- Original archive: https://news-web.php.net/php.internals/212
- Started by Tal Peer on 2003-03-24T15:48:21+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #212 — Tal Peer — 2003-03-24T15:48:21+00:00

URL: https://externals.io/message/212#212

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

---

## #261 — Tal Peer — 2003-03-25T12:25:05+00:00

URL: https://externals.io/message/212#261 · In reply to: #212

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
