Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45993 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48017 invoked from network); 10 Nov 2009 17:01:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2009 17:01:12 -0000 Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass 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: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.218.213 mail-bw0-f213.google.com Received: from [209.85.218.213] ([209.85.218.213:42632] helo=mail-bw0-f213.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5D/61-38546-63C99FA4 for ; Tue, 10 Nov 2009 12:01:11 -0500 Received: by bwz5 with SMTP id 5so235023bwz.23 for ; Tue, 10 Nov 2009 09:00:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=lwClfDS7iIcsR5oj16K7U85L3SOR5XzCpf7KK4y09Ng=; b=OaEZSl8dq7BWuEwJV7aprAtcXjODVsWuttqzIRyMUbPil4ElANlxkWKS51FRywzwif cEPEKl7N8gaHq61R9/J1yegUaphz3dBD/7wcypoauIVvEzKZhzvWyfqUGiQh2NvCZ3dK PujkUGWkXb+V5GgSw95dx+Pq3ZozabO8wsKdw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=oCJmD03njpSIFuTMVzOysCaKPwkPzzjcwdJgjHpn4n1Ni+uKm+Bi5g2Sxs45M+VC9E guDpFAxFW3KIxyAKZir+LMjyIFEG5DEVLY50Y+O94biGgFMqeGDy6uGsyYe1a99qxjfg AWjOzauGnK0CIAOR80BFqPrRy4aLG3pL6hAD8= MIME-Version: 1.0 Received: by 10.204.152.154 with SMTP id g26mr347607bkw.54.1257872434949; Tue, 10 Nov 2009 09:00:34 -0800 (PST) In-Reply-To: <413588E2-8AC8-49F7-B7BF-97BEFB0A71E4@pooteeweet.org> References: <413588E2-8AC8-49F7-B7BF-97BEFB0A71E4@pooteeweet.org> Date: Tue, 10 Nov 2009 15:00:34 -0200 Message-ID: To: Lukas Kahwe Smith Cc: PHP Developers Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] alternative to the fopen() hack in autoloaders From: guilhermeblanco@gmail.com (Guilherme Blanco) include_silent is the name I though most intuitive once I finished to read the RFC. But it may not be the best too. It just need to be verbose. Cheers, On Tue, Nov 10, 2009 at 2:45 PM, Lukas Kahwe Smith wro= te: > Ahoi, > > I have written an RFC for a more efficient solution to get rid of the com= mon > fopen() hack inside autoloaders: > if ($fp =3D @fopen($file, 'r', true)) { > fclose($fp); > include $file; > } > > Here is the gist of the proposal: > In order to solve the above issues this RFC proposes the addition of a ne= w > construct/function for now called =E2=80=9Cautoload_include=E2=80=9D for = lack of a better > name that largely behaves like the =E2=80=9Cinclude=E2=80=9D does today w= ith the following > differences, that when the include failed because of a missing file no > warning is raised and php null is returned. > > Further details can be found on the wiki: > http://wiki.php.net/rfc/autoload_include > > As stated in the RFC, I am not happy with the name "autoload_include". > Suggestions welcome! > > regards, > Lukas Kahwe Smith > mls@pooteeweet.org > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Guilherme Blanco - Web Developer CBC - Certified Bindows Consultant Cell Phone: +55 (16) 9215-8480 MSN: guilhermeblanco@hotmail.com URL: http://blog.bisna.com S=C3=A3o Paulo - SP/Brazil