Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46020 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42879 invoked from network); 11 Nov 2009 01:20:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Nov 2009 01:20:36 -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.185 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.185 il-mr1.zend.com Received: from [212.25.124.185] ([212.25.124.185:52940] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2B/23-38546-2611AFA4 for ; Tue, 10 Nov 2009 20:20:35 -0500 Received: from us-gw1.zend.com (unknown [192.168.16.5]) by il-mr1.zend.com (Postfix) with ESMTP id 4372950473; Wed, 11 Nov 2009 03:08:01 +0200 (IST) Received: from [192.168.16.66] ([192.168.16.66]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 10 Nov 2009 17:20:29 -0800 Message-ID: <4AFA115D.5060800@zend.com> Date: Tue, 10 Nov 2009 17:20:29 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Greg Beaver CC: internals@lists.php.net, Christian Schneider , Lukas Kahwe Smith References: <413588E2-8AC8-49F7-B7BF-97BEFB0A71E4@pooteeweet.org> <4AF9A03E.8000207@cschneid.com> <4AF9AE1A.9000005@zend.com> <4AF9C589.3090604@chiaraquartet.net> <4AF9CCEA.1030500@zend.com> <4AFA0449.2030600@chiaraquartet.net> <4AFA0756.4020609@zend.com> <4AFA0A38.7000502@chiaraquartet.net> In-Reply-To: <4AFA0A38.7000502@chiaraquartet.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 11 Nov 2009 01:20:29.0763 (UTC) FILETIME=[28201930:01CA626D] Subject: Re: [PHP-DEV] Re: alternative to the fopen() hack in autoloaders From: stas@zend.com (Stanislav Malyshev) Hi! > Yes, but let's not forget we're talking about making this: While with proper caching, it can be 0 filesystem accesses. > if (can_include($file)) { > include $file; > } That's exactly what I was proposing - to have function to find file in include path and probably return the resulting filename (in case framework wants to keep it, or cache, or use it as a key or whatever). -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com