# [RFC] [Vote] PHP namespace policy

- Thread: https://staging.externals.io/message/111191
- Original archive: https://news-web.php.net/php.internals/111191
- Started by Larry Garfield on 2020-07-26T16:24:17+00:00
- Messages: 3
- RFC: PHP Namespace Policy (Declined) — https://staging.externals.io/rfc/php_namespace_policy.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://staging.externals.io/search.md?q={query} · RFCs at https://staging.externals.io/rfc.md · JSON API at https://staging.externals.io/api · documentation at https://staging.externals.io/llms.txt

---

## #111191 — Larry Garfield — 2020-07-26T16:24:17+00:00

URL: https://staging.externals.io/message/111191#111191

The vote on the PHP namespace policy is now open:

https://wiki.php.net/rfc/php_namespace_policy

Usual rules, 2/3 required for passage.  Vote will be open until 9 August.


-- 
  Larry Garfield
  larry@garfieldtech.com

---

## #111194 — Mark Randall — 2020-07-26T16:48:27+00:00

URL: https://staging.externals.io/message/111191#111194 · In reply to: #111191

> The vote on the PHP namespace policy is now open: 
> https://wiki.php.net/rfc/php_namespace_policy

Thanks to Larry for putting in a lot of effort with this RFC.

I would like to think this RFC provides a solution to a legitimate 
long-term problem.

1. It will allow the logical grouping of related classes and symbols 
within namespaces, as is considered best practice in userland. So far as 
naming goes, there is no reason to believe what is applicable to 
userland is not equally applicable to php-src and its extensions.

2. It will prevent us needing to "fake" namespaces by prefixing future 
symbols with Php or the extension name.

3. It provides for bundling and unbundling extensions without the need 
to change symbols.

---

## #111429 — Larry Garfield — 2020-08-10T13:41:42+00:00

URL: https://staging.externals.io/message/111191#111429 · In reply to: #111191

> The vote on the PHP namespace policy is now open:
> 
> https://wiki.php.net/rfc/php_namespace_policy
> 
> Usual rules, 2/3 required for passage.  Vote will be open until 9 August.

The vote has been closed.  Final results:

Yes: 13
No: 17

The RFC has not passed.  Thank you to those that participated.

I neglected to include a "why not" section in the vote (my fault), so I would ask for those who voted no, Why?

1) I don't believe we should have a policy on this at all.
2) We should explicitly have a policy to only ever use the global namespace.
3) We should have a namespace policy, but I didn't like some detail of this one.  (Please explain.)
4) Other (please explain).

Thank you for your time.

--Larry Garfield
