Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20932 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55478 invoked by uid 1010); 1 Dec 2005 07:44:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 55463 invoked from network); 1 Dec 2005 07:44:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Dec 2005 07:44:35 -0000 X-Host-Fingerprint: 194.109.253.196 mediawave.xs4all.nl Received: from ([194.109.253.196:19214] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id CC/58-14828-3E9AE834 for ; Thu, 01 Dec 2005 02:44:35 -0500 Message-ID: To: internals@lists.php.net Date: Thu, 01 Dec 2005 08:45:19 +0100 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 References: <000601c5f583$2490afb0$5d54edc6@jake> <2E.2A.14828.8F93E834@pb1.pair.com> <5C.BC.14828.95D4E834@pb1.pair.com> <438E6759.90300@gmail.com> In-Reply-To: <438E6759.90300@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 194.109.253.196 Subject: Re: Desired namespace behavoir From: bart@mediawave.nl (Bart de Boer) >> 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(); So, if namespace JessieStuff contains multiple classes. They would all become JessieStuff_ClassName. Assuming the package relies on its own classes, it wouldn't be able to call them anymore because all their names have changed.