Re: Discussion: Object-scoped RNG
| From: | Nikita Popov | Date: | Wed, 12 May 2021 14:58:37 +0000 |
| Subject: | Re: Discussion: Object-scoped RNG | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-114446@lists.php.net to get a copy of this message | ||
On Wed, May 12, 2021 at 4:51 PM Levi Morrison via internals <
internals@lists.php.net> wrote:
> > Also, I am happy to see that Nikita's rules for namespace assignment to
> extensions have been approved. I'm going to use the
RNG
> namespace.
>
> Just to be clear, you can only use RNG as a namespace if the
> extension is named ext/rng. You cannot add namespaced things to
> standard nor SPL nor
> Core.
>
This is not correct. The namespace policy RFC specifically and explicitly
allows namespacing of components in standard/core, see
https://wiki.php.net/rfc/namespaces_in_bundled_extensions#core_standard_spl.
Adding something under the RNG\ namespace inside ext/standard is fine
(modulo due diligence on the specific choice of namespace name).
Regards,
Nikita