Re: [RFC] Namespaced in bundled extensions

From: Date: Fri, 26 Feb 2021 13:20:36 +0000
Subject: Re: [RFC] Namespaced in bundled extensions
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-113289@lists.php.net to get a copy of this message
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

Thread (19 messages)

« previous php.internals (#113289) next »