Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32892 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82714 invoked by uid 1010); 20 Oct 2007 23:19:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 82699 invoked from network); 20 Oct 2007 23:19:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Oct 2007 23:19:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=chuck@horde.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=chuck@horde.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain horde.org designates 66.92.78.250 as permitted sender) X-PHP-List-Original-Sender: chuck@horde.org X-Host-Fingerprint: 66.92.78.250 dsl092-078-250.bos1.dsl.speakeasy.net Received: from [66.92.78.250] ([66.92.78.250:45209] helo=technest.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 37/EC-03598-71D8A174 for ; Sat, 20 Oct 2007 19:19:51 -0400 Received: by technest.org (Postfix, from userid 33) id CEEEE7F00D; Sat, 20 Oct 2007 19:19:48 -0400 (EDT) Received: from tatiana (tatiana [192.168.1.2]) by technest.org (Horde Framework) with HTTP; Sat, 20 Oct 2007 19:19:48 -0400 Message-ID: <20071020191948.19935z9hoqcn9c84@technest.org> Date: Sat, 20 Oct 2007 19:19:48 -0400 To: Stanislav Malyshev 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> In-Reply-To: <471A8A12.3050407@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.2-cvs) Subject: Re: [PHP-DEV] Order of class resolution with namespaces and autoload From: chuck@horde.org (Chuck Hagenbuch) Quoting Stanislav Malyshev : > Because if you say "Exception" inside any namespace, we should check > if Foo::Exception not exists anywhere, which means full search of > all autoloading possibilities. Only after we ensured that no such > class exists anywhere, we might use Exception. Since using system > classes is much more frequent than overloading them, performance > would greatly suffer each time you use system class name inside > namespace. But you shouldn't even look for Exception then. I'm saying that if you want the global Exception class you should import it. -chuck