Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20927 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36185 invoked by uid 1010); 1 Dec 2005 01:09:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36170 invoked from network); 1 Dec 2005 01:09:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Dec 2005 01:09:45 -0000 X-Host-Fingerprint: 84.60.0.20 dslb-084-060-000-020.pools.arcor-ip.net Received: from ([84.60.0.20:13494] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 5C/BC-14828-95D4E834 for ; Wed, 30 Nov 2005 20:09:45 -0500 Message-ID: <5C.BC.14828.95D4E834@pb1.pair.com> To: internals@lists.php.net Date: Thu, 01 Dec 2005 02:09:42 +0100 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 References: <000601c5f583$2490afb0$5d54edc6@jake> <2E.2A.14828.8F93E834@pb1.pair.com> In-Reply-To: <2E.2A.14828.8F93E834@pb1.pair.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Posted-By: 84.60.0.20 Subject: Re: Desired namespace behavoir From: oliver.graetz@arcor.de (=?ISO-8859-15?Q?Oliver_Gr=E4tz?=) Jessie Hernandez schrieb: > Please explain what you mean. Didn't you get my mail? OK, I'll put it in here: --------------------------------------------------------- I already brought this up once: How difficult is it to introduce an option to php.ini which has its standard setting in such a way that every encountered namespace is automagically translated into "classic prefixing" style? Let's say: Mike doesn't want to use namespaces but he wants to use a package from Jessie. Jessie uses namespaces. Mike has his PHP configured to "auto-prefix-import" everything. So if he uses your file foo.php containg namespace JessieStuff{ class Foo { ... } } in conjunction with this setting would enable him to require_once('foo.php'); $x=new JessieStuff_Foo(); This enables people who don't like namespaces to disregard them. No import, no ::: and all the fresh fun when name collisions occur. Of course, their code wouldn't be easily usable by those using namespaces, but that's their problem not ours. --------------------------------------------------------- This simply means automating the "as" option for EVERYTHING inside namespaces for people that hate them. OLLi