Re: Reserved namespaces
| From: | Hannes Magnusson | Date: | Tue, 31 Mar 2009 06:51:12 +0000 |
| Subject: | Re: Reserved namespaces | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-43551@lists.php.net to get a copy of this message | ||
On Tue, Mar 31, 2009 at 04:47, Greg Beaver <greg@chiaraquartet.net> wrote:
> Lukas Kahwe Smith wrote:
>>
>> So where are we at here?
>> If nobody proposes something, this will just slide by ..
>
> I propose reserving PHP. extensions can be PHP\extname (i.e. class
> PHP\Phar, or for extensions with multiple levels of hierarchy
> PHP\PDO\mysql etc.)
+1
I don't think we should magically raise errors if someone tries to
declare such namespace, but updating the userland naming guide would
be good.
That being said; Would it be possible to enforce the PHP\ internally?
Otherwise extension authors will simply ignore the rule and come up
with their own conventions...
-Hannes