Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39851 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50724 invoked from network); 12 Aug 2008 00:11:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Aug 2008 00:11:57 -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 212.25.124.163 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.163 il-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.163] ([212.25.124.163:42490] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/E4-25857-C45D0A84 for ; Mon, 11 Aug 2008 20:11:57 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 12 Aug 2008 03:12:44 +0300 Received: from [192.168.16.110] ([192.168.16.110]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 11 Aug 2008 17:12:41 -0700 Message-ID: <48A0D579.2000000@zend.com> Date: Mon, 11 Aug 2008 17:12:41 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Etienne Kneuss CC: hannes.magnusson@gmail.com, Lukas Kahwe Smith , Marcus Boerger , internals@lists.php.net References: <909776579.20080803142659@marcus-boerger.de> <840985F2-A701-4BE4-91F6-F6B39048CF9B@pooteeweet.org> <48A09FF4.1030101@zend.com> <7f3ed2c30808111411t51553771j389f05c3436bc625@mail.gmail.com> <48A0C415.9090104@zend.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Aug 2008 00:12:41.0816 (UTC) FILETIME=[2312A580:01C8FC10] Subject: Re: [PHP-DEV] Inconsistencies in 5.3 From: stas@zend.com (Stanislav Malyshev) Hi! > I fail to see why { } meaning a different level of hierarchy is a > problem here, that's exactly what it's supposed to mean: "code in that > block is affected by that namespace." Exactly. The thing is that there can be no code that is not affected (at least not in this file) for namespaces - and {} implies there could be. > We don't expect if's to work until the next if(), do we? Even though > ifs are not "entities like classes or functions". Exactly. That's why it makes sense to have if() with braces - because if works not until the end of file, but only with the block attached to it, and after this block ends, it's like there was no if. But namespace doesn't work this way. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com