[RFC] [Vote] PHP namespace policy

php.internals

Larry Garfield

6 years ago
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

Mark Randall

6 years ago
On 26/07/2020 17:24, Larry Garfield wrote:
> 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.

Larry Garfield

6 years ago
On Sun, Jul 26, 2020, at 11:24 AM, Larry Garfield wrote:
> 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