Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46025 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98352 invoked from network); 11 Nov 2009 10:44:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Nov 2009 10:44:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=mikko.koppanen@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mikko.koppanen@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.213 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mikko.koppanen@gmail.com X-Host-Fingerprint: 209.85.218.213 mail-bw0-f213.google.com Received: from [209.85.218.213] ([209.85.218.213:40293] helo=mail-bw0-f213.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A8/A5-65174-8A59AFA4 for ; Wed, 11 Nov 2009 05:44:56 -0500 Received: by bwz5 with SMTP id 5so868722bwz.23 for ; Wed, 11 Nov 2009 02:44:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=74/fh22cS4pStfZ03sr1pUybrVlFjwUy53fJAtveo/A=; b=WxgFghCRADJcAIcRdjV7p069voKGS6bxmLx7Cjfg8BvLbP7TVbMFDIzp9qtvGlEZ7J xJerPVsUshEu2X0PZJ04bQ8naW0xkIJIq6dvT1z3+3vgo9JTsU0KQFvsaeqx4tuvOOis /ps6tWTLWlGBFsVD3Dh3L8TwxIi/w6FnxF6rY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=qS4Nzr/cSRw240bTl71PF1ffYIAx5hhIE5QZryWWT2TeM7ZhSbwVrpWd1RNYCA2QXe nVHF6q3Dy+pik4aCKKdiEQX35bFmxSXvgptmfPo80faubBLRM7UKprdr3KXxs6UUAnzl 3QBz/8+7DWdQxcgKDvGKzH6QaxROkEl8JD8nI= MIME-Version: 1.0 Sender: mikko.koppanen@gmail.com Received: by 10.223.110.39 with SMTP id l39mr214371fap.3.1257936292708; Wed, 11 Nov 2009 02:44:52 -0800 (PST) In-Reply-To: <8B520687-04D6-4CB3-BB7A-51A62D74489B@pooteeweet.org> 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> <8B520687-04D6-4CB3-BB7A-51A62D74489B@pooteeweet.org> Date: Wed, 11 Nov 2009 10:44:52 +0000 X-Google-Sender-Auth: dfd26a25d392d582 Message-ID: <8cf711460911110244m22e2fedag21e294d8d3909037@mail.gmail.com> To: Lukas Kahwe Smith Cc: Greg Beaver , Stanislav Malyshev , internals@lists.php.net, Christian Schneider Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: alternative to the fopen() hack in autoloaders From: mkoppanen@php.net (Mikko Koppanen) On Wed, Nov 11, 2009 at 10:00 AM, Lukas Kahwe Smith wr= ote: > > On 11.11.2009, at 01:50, Greg Beaver wrote: > >> if (can_include($file)) { >> =A0 include $file; >> } > > > I am sure you focused on the technical aspects. Just wanted to say that f= or > a name "can" is not ideal, because there is no gurantee that the file wil= l > not have syntax errors. As such something with "exists" is better (for > example include_file_exists(), though also not ideal) .. Stas proposal of= a > "file_find()" is also good, but I think it would be nice to have "include= " > in the name. > Isn't this what stream_resolve_include_path does? --=20 Mikko Koppanen