# Bundled Extension namespace(s)

- Thread: https://externals.io/message/115397
- Original archive: https://news-web.php.net/php.internals/115397
- Started by Pierre Joye on 2021-07-12T09:10:20+00:00
- Messages: 5
- 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

---

## #115397 — Pierre Joye — 2021-07-12T09:10:20+00:00

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

Good afternoon internals,

What is the status of the extension namespace RFC
(https://wiki.php.net/rfc/namespaces_in_bundled_extensions)?

In the near future, I plan to work a bit on the ext/gd one. Adding
quite a few things I have in my queue for too long. Check
https://github.com/libgd/libgd/issues/705 if interested.

I am not sure about the base NS to be used. if I follow the RFC, it
should be Image\.

What do you think?

Best,
-- 
Pierre

@pierrejoye | http://www.libgd.org

---

## #115400 — Christoph M. Becker — 2021-07-12T11:31:56+00:00

URL: https://externals.io/message/115397#115400 · In reply to: #115397

> What is the status of the extension namespace RFC
> (https://wiki.php.net/rfc/namespaces_in_bundled_extensions)?
>
> In the near future, I plan to work a bit on the ext/gd one. Adding
> quite a few things I have in my queue for too long. Check
> https://github.com/libgd/libgd/issues/705 if interested.
>
> I am not sure about the base NS to be used. if I follow the RFC, it
> should be Image\.

The RFC states:

| The top-level namespace should match the extension name (apart from
| casing).

So shouldn't the namespace rather be Gd or GD?

Christoph

---

## #115401 — Pierre Joye — 2021-07-12T11:33:47+00:00

URL: https://externals.io/message/115397#115401 · In reply to: #115400

> 
>
> > […]
>
> The RFC states:
>
> | The top-level namespace should match the extension name (apart from
> | casing).
>

Ah I missed that part, I was looking at examples  :)


> So shouldn't the namespace rather be Gd or GD?
>

I would go with Gd, double uppercase is "harder" to type  :)

best,
Pierre

---

## #115403 — Christoph M. Becker — 2021-07-12T11:39:50+00:00

URL: https://externals.io/message/115397#115403 · In reply to: #115401

> I would go with Gd, double uppercase is "harder" to type  :)

+1.  That also matches GdImage and GdFont.

Christoph

---

## #115404 — Pierre R. — 2021-07-12T12:32:55+00:00

URL: https://externals.io/message/115397#115404 · In reply to: #115403

Le 12 juillet 2021 13:39:50 GMT+02:00, "Christoph M. Becker" <cmbecker69@gmx.de> a écrit :
>
>
> > […]
>
>+1.  That also matches GdImage and GdFont.
>
>Christoph
>
>-- 
>
>To unsubscribe, visit: https://www.php.net/unsub.php

Hello,

I am not fond of 2-letters namespace names, juste saying it for the sake of saying it. Does the policy cover that ?

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
