Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32926 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14228 invoked by uid 1010); 23 Oct 2007 04:10:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 14212 invoked from network); 23 Oct 2007 04:10:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Oct 2007 04:10:38 -0000 Authentication-Results: pb1.pair.com header.from=chuck@horde.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=chuck@horde.org; spf=pass; 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:35541] helo=technest.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/10-13350-C347D174 for ; Tue, 23 Oct 2007 00:10:37 -0400 Received: by technest.org (Postfix, from userid 33) id 859507F00D; Tue, 23 Oct 2007 00:01:48 -0400 (EDT) Received: from tatiana (tatiana [192.168.1.2]) by technest.org (Horde Framework) with HTTP; Tue, 23 Oct 2007 00:01:48 -0400 Message-ID: <20071023000148.19173khz5wl4c30g@technest.org> Date: Tue, 23 Oct 2007 00:01:48 -0400 To: Stanislav Malyshev Cc: internals@lists.php.net, greg@chiaraquartet.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> <471BA74C.1040103@zend.com> <20071021203755.11105vn0ycds6bs4@technest.org> <471D4623.4090208@zend.com> In-Reply-To: <471D4623.4090208@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 : >> Yes. I think that if you use an unqualified name it should always =20 >> be relative to the namespace (and importing internal classes into =20 >> your namespace lets you use short names for them, avoiding =20 >> ::Exception). > > Unfortunately, there are problems with this solution, since it > makes common case harder to implement - internal classes are more =20 > frequently used than overridden. It makes harder to convert library =20 > code which does not use tricks like overriding system classes - =20 > which is on my experience most of the code - you have now to go to =20 > almost every file and find all the system classes you have used =20 > there and put imports for them. My last word on this is just going to be to ask you to consult with =20 the Zend Framework team (Matthew W.), PEAR2 (Greg), and perhaps some =20 other large PHP class libraries/frameworks. I don't think it's =20 unreasonable to say that namespaces should be heavily influenced by =20 the kind of large projects that will use them. I'm speaking for Horde; =20 if all the other large projects prefer it the way it currently is, =20 then that's fine, I can live with that, but if not, I just ask that =20 you reconsider. Thanks, -chuck