Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41483 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11543 invoked from network); 27 Oct 2008 20:00:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Oct 2008 20:00:41 -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.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:61668] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F0/FA-34199-8ED16094 for ; Mon, 27 Oct 2008 15:00:41 -0500 Received: from us-gw1.zend.com ([192.168.16.5]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 27 Oct 2008 22:01:09 +0200 Received: from [192.168.16.110] ([192.168.16.110]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 27 Oct 2008 13:01:06 -0700 Message-ID: <49061E01.8060503@zend.com> Date: Mon, 27 Oct 2008 13:01:05 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Josh Davis CC: Rodrigo Saboya , internals@lists.php.net References: <49048EC1.9060908@chiaraquartet.net> <4904CE3B.2000001@chiaraquartet.net> <4905EDA9.9050301@zend.com> <11c607a60810271049y419c252q7e21cde9221f1996@mail.gmail.com> <490600CD.5020207@zend.com> <11c607a60810271252r4bedeea8q59ce5423891d8e59@mail.gmail.com> In-Reply-To: <11c607a60810271252r4bedeea8q59ce5423891d8e59@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 27 Oct 2008 20:01:06.0164 (UTC) FILETIME=[BF2BB340:01C9386E] Subject: Re: [PHP-DEV] namespace separator and whining From: stas@zend.com (Stanislav Malyshev) Hi! > Then, if we assume that most people will use the global namespace > without prefixing it, what would be the best resolution order for > them? (you didn't mention it in your previous message) Using the prefixed names. > People who care about performance are supposed to profile their > code... I guess? If they don't, they probably don't really care about > it. People who care about performance are supposed to be knowledgeable > about good practices. I consider knowingly putting performance bomb into the language with the reasoning of "if you know what you are doing, you can disarm it" extremely bad idea, especially in PHP which is supposed to be low-learning-curve language. > Include + relative path does not give any indication either and it > does exactly what you've described above (traverse the full include Include can be cached. Failed autoload can't. > that use __autoload(). With relative paths. Come to think of it, why > would an application autoload files that aren't in its directory? Because there exist applications that have more than one directory, use all sorts of libraries and frameworks, which can have autoloading rules not fit for the scenario when you try to load class which actually is not meant to be loaded. How many of the loaders optimize for the scenario that class can not be found? Not all of them even will survive that. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com