Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31817 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51318 invoked by uid 1010); 21 Aug 2007 21:41:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 51302 invoked from network); 21 Aug 2007 21:41:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Aug 2007 21:41:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.114 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.114 unknown Windows 2000 SP4, XP SP1 Received: from [63.205.162.114] ([63.205.162.114:18912] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/50-48862-B0C5BC64 for ; Tue, 21 Aug 2007 17:41:33 -0400 Received: from [127.0.0.1] ([192.168.16.180]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 21 Aug 2007 14:41:28 -0700 Message-ID: <46CB5C06.6050006@zend.com> Date: Tue, 21 Aug 2007 14:41:26 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Gregory Beaver CC: Dmitry Stogov , 'internals Mailing List' References: <46C9F217.8040804@chiaraquartet.net> <000001c7e3cb$9a80b160$6e02a8c0@thinkpad> <46CB3DF1.5090203@chiaraquartet.net> <46CB55A0.3050904@zend.com> <46CB59C0.1020306@chiaraquartet.net> In-Reply-To: <46CB59C0.1020306@chiaraquartet.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Aug 2007 21:41:28.0943 (UTC) FILETIME=[082917F0:01C7E43C] Subject: Re: [PHP-DEV] [PATCH] allowing multiple namespaces per file plus namespaces with brackets From: stas@zend.com (Stanislav Malyshev) > Careful Stas :), you probably missed the "import foo::bar;" This code > works just fine: No I didn't. That's the whole point - once you do import outside namespace, you can break stuff inside. Namespace is supposed to be isolated from other namespaces, that's the whole point of it. But if you make import have effects on other namespaces, then code in one namespace can break other. > file1.php: > namespace foo; > class bar {} > ?> > > file2.php: > namespace gronk; > import foo::bar; > class bar {} > ?> The problem is not this code. The problem is this code: file1.php file2.php: Would start failing too once you merge them in one file, even though they worked just fine before. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com