Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41465 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60097 invoked from network); 27 Oct 2008 16:34:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Oct 2008 16:34:25 -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.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:54737] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/51-34199-F8DE5094 for ; Mon, 27 Oct 2008 11:34:25 -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 18:34:52 +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 09:34:49 -0700 Message-ID: <4905EDA9.9050301@zend.com> Date: Mon, 27 Oct 2008 09:34:49 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Sebastian Bergmann CC: internals@lists.php.net References: <49048EC1.9060908@chiaraquartet.net> <4904CE3B.2000001@chiaraquartet.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 27 Oct 2008 16:34:49.0071 (UTC) FILETIME=[EDD92FF0:01C93851] Subject: Re: [PHP-DEV] namespace separator and whining From: stas@zend.com (Stanislav Malyshev) Hi! >> 1) check for namespaced\classname >> 2) try to autoload namespaced\classname >> 3) check for internal classname That's the wrong way to do it - it means every time you mention the internal class name without prefixing it with \ you get exhaustive autoloading search and nothing tells you about it but sudden performance drop in your application. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com