Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32904 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84009 invoked by uid 1010); 21 Oct 2007 19:24:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 83993 invoked from network); 21 Oct 2007 19:24:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Oct 2007 19:24:04 -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.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:28588] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/CE-32256-157AB174 for ; Sun, 21 Oct 2007 15:24:03 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 21 Oct 2007 21:23:59 +0200 Received: from [192.168.17.1] ([192.168.17.1]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 21 Oct 2007 12:23:55 -0700 Message-ID: <471BA74C.1040103@zend.com> Date: Sun, 21 Oct 2007 12:23:56 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Chuck Hagenbuch CC: internals@lists.php.net References: <20071019224202.20245u5zry52h5c8@technest.org> <471A6B32.3080401@zend.com> <20071020172658.1680416b83wxgv6s@technest.org> <471A7C88.6090904@zend.com> <20071020184554.69044keujpgfelus@technest.org> <471A8A12.3050407@zend.com> <20071020191948.19935z9hoqcn9c84@technest.org> <471A9049.1020408@zend.com> <20071020194217.98794nbyt3bwrlnk@technest.org> <471AEF26.5000601@zend.com> <20071021105124.85283gxiqqx9zse8@technest.org> In-Reply-To: <20071021105124.85283gxiqqx9zse8@technest.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Oct 2007 19:23:55.0325 (UTC) FILETIME=[EBD1AED0:01C81417] Subject: Re: [PHP-DEV] Order of class resolution with namespaces and autoload From: stas@zend.com (Stanislav Malyshev) > I don't think this helps; it means that you need to use the local syntax > every time you use a class, instead of importing it once, and it doesn't > resolve the fact that if you use a non-fully-qualified classname (like > Directory, for a different example), you need to say ::Directory or else > if a previous file in your namespace has defined a Directory class, the > class you end up using changes. I'm not sure I follow you. If you intend to always use internal one, why you define the local one? If you sometimes intend to use one and sometimes another - I propose you a way to ensure the right one is always used, this without using potentially long full name. I must be missing something here - can you specify what exactly you want it to be? You do understand that if you insist on always using unqualified name, it must work some consistent way, and this way can not satisfy all possible scenarios because they are contradictory? > This unpredictability is I think the worst part of the current > implementation. There's no "unpredictability" - the behavior is entirely predictable, you just don't like it :) That's like saying that function call is unpredictable, because if you don't define the function it produces an error. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com