Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41840 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5455 invoked from network); 10 Nov 2008 22:04:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2008 22:04:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=david@grudl.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=david@grudl.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain grudl.com from 80.79.20.227 cause and error) X-PHP-List-Original-Sender: david@grudl.com X-Host-Fingerprint: 80.79.20.227 keeper.orionet.cz Received: from [80.79.20.227] ([80.79.20.227:58242] helo=keeper.orionet.cz) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3D/E0-34173-100B8194 for ; Mon, 10 Nov 2008 17:04:50 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by keeper.orionet.cz (Postfix) with ESMTP id 0537D1840980 for ; Mon, 10 Nov 2008 23:04:47 +0100 (CET) Received: from keeper.orionet.cz ([127.0.0.1]) by localhost (keeper.orionet.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16603-10 for ; Mon, 10 Nov 2008 23:04:46 +0100 (CET) Received: by keeper.orionet.cz (Postfix, from userid 1005) id E1ED1184097F; Mon, 10 Nov 2008 23:04:46 +0100 (CET) Received: from [192.168.1.23] (unknown [77.240.188.66]) by keeper.orionet.cz (Postfix) with ESMTP id A1FAE1840970; Mon, 10 Nov 2008 23:04:46 +0100 (CET) Message-ID: <4918AFE1.70506@grudl.com> Date: Mon, 10 Nov 2008 23:04:17 +0100 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Gregory Beaver CC: =?ISO-8859-2?Q?Jaroslav_Hansl=EDk?= , internals@lists.php.net References: <49188698.1050505@grudl.com> <49188BD0.9090100@kukulich.net> <4918A3F8.4070809@chiaraquartet.net> In-Reply-To: <4918A3F8.4070809@chiaraquartet.net> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at example.com Subject: Re: Namespace resolution rules has been changed? From: david@grudl.com (David Grudl) > The problem was that it isn't immediately clear why we would consider > "Sub\Object" to be the same as "\Sub\Object", but "Object" to be > different from "\Object" inside a namespace context, but the same > outside a namespace context. > The "Sub\Object" should be understand as fully qualified identifiers and thus considered as the same as "\Sub\Object". I understand this new behaviour is same as using "relative paths", but there is a common best practise to not make dependencies form topper namespaces to deeper ones. So it is rare to have class Company\Software\Base extending Company\Software\Web\Forms\Control (i.e. Base extends Web\Forms\Control), and it is common have class Company\Software\Web\Forms\Control extending Company\Software\Base. So in real world it means that nearly every usage of "partially qualified indentifiers" (Sub\Object) have to be written with preceding backslash. David Grudl My english is poor but I hope you understand me ;)