Le 25/02/2021 à 21:26, Nikita Popov a écrit :
Hi internals,
The question of namespaces in the stdlib has been coming up a lot recently,
so I'd like to present my own stab at resolving this question:
https://wiki.php.net/rfc/namespaces_in_bundled_extensions
Relative to a number of previous (declined) proposals, the main difference
is that I do not propose a top-level "PHP\" vendor namespace, and instead
recommend the use of "ExtName\", in line with existing practice for
extensions. I believe this addresses the primary concern with previous
proposals.
Regards,
Nikita
Hello,
Thank you so much for this RFC, this is a big +1 for me.
There's only one caveat: wouldn't this create name conflicts with some existing third-party libraries ? Anyway, if it does, it'll conflict with Array, or Password, or OpenSSL named libraries, and in this case, it means they have voluntarily ignored the vendoring convention, which is evil-designed since they would take a common name as root namespaces and prevent legitimate use of those, and they should probably be fixed.
--
Pierre