Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32894 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86221 invoked by uid 1010); 20 Oct 2007 23:32:19 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 86205 invoked from network); 20 Oct 2007 23:32:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Oct 2007 23:32:19 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; 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:41559] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/9D-03598-2009A174 for ; Sat, 20 Oct 2007 19:32:19 -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 01:32:15 +0200 Received: from [192.168.17.1] ([192.168.17.1]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 20 Oct 2007 16:32:11 -0700 Message-ID: <471A8FFD.6030105@zend.com> Date: Sat, 20 Oct 2007 16:32:13 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Chuck Hagenbuch CC: Gregory Beaver , internals@lists.php.net References: <20071019224202.20245u5zry52h5c8@technest.org> <47196F1A.80400@chiaraquartet.net> <471A6BC6.3090608@zend.com> <20071020172832.338919lgcfp4v1us@technest.org> <471A7932.9040707@zend.com> <20071020182434.512034p03a24phes@technest.org> <471A8926.8020607@zend.com> <20071020192525.74792p4tk62gmc2s@technest.org> In-Reply-To: <20071020192525.74792p4tk62gmc2s@technest.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 20 Oct 2007 23:32:11.0955 (UTC) FILETIME=[707D4830:01C81371] Subject: Re: [PHP-DEV] Re: Order of class resolution with namespaces and autoload From: stas@zend.com (Stanislav Malyshev) > Right, it's not going to affect most classes most of the time, but my > point is that you can't predict which classes will be affected. You can - set of internal classes is very well known, unless you are using some exotic extensions. In any case, I am not 100% happy with this solution, but the only alternative proposed so far (and we did consider it before deciding) is worse both in terms of easiness to use for the code and performance. If you can think of any way to solve this which not includes calling autoload on each instance of internal class used in namespace and requiring to always use :: to refer to internal classes - I'd be happy to hear it. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com