Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98241 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38169 invoked from network); 7 Feb 2017 11:05:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2017 11:05:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Received: from [82.113.146.227] ([82.113.146.227:49672] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/68-03389-2E9A9985 for ; Tue, 07 Feb 2017 06:05:07 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id AD81F10CEB1; Tue, 7 Feb 2017 11:05:03 +0000 (GMT) Date: Tue, 7 Feb 2017 11:05:03 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Stanislav Malyshev cc: PHP internals , Nikita Popov In-Reply-To: Message-ID: References: <459c6bef-8936-634a-9520-dbd65c35b7c7@fleshgrinder.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [PHP-DEV] Namespaces in Core From: derick@php.net (Derick Rethans) On Mon, 6 Feb 2017, Stanislav Malyshev wrote: > > I'm strongly against use of the PHP namespace as a blanket namespace > > for bundled PHP extensions. The PHP namespace should be used only > > for functionality that is actually in some way related to PHP. For > > example, the php-ast extension could reasonably be namespaced as > > php\ast, as it provides an AST for PHP specifically. Similarly the > > tokenizer extension could reasonably be namespaced as php\tokenizer. > > Agree. If we ever need namespace for mongodb extension, it should be > mongodb (choose capitalization to your liking), not php\mongodb - php\ > should be things that are really php core or specifically deal with > aspects of php as a language - tokenizer, syntax, etc. It already has the MongoDB namespace btw: http://php.net/manual/en/book.mongodb.php And I would say that I would not agree with that namespace changing to (nothing) *if* it would be part of the PHP core distribution, instead I would choose for it to not be part of the core PHP distribution to avoid breaking BC. cheers, Derick -- https://derickrethans.nl | https://xdebug.org | https://dram.io Like Xdebug? Consider a donation: https://xdebug.org/donate.php twitter: @derickr and @xdebug