Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55957 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18996 invoked from network); 25 Oct 2011 10:49:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Oct 2011 10:49:29 -0000 Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 74.125.82.170 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 74.125.82.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:55674] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/04-27798-73496AE4 for ; Tue, 25 Oct 2011 06:49:28 -0400 Received: by wyf23 with SMTP id 23so366055wyf.29 for ; Tue, 25 Oct 2011 03:49:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.199.132 with SMTP id es4mr2843322wbb.5.1319539764126; Tue, 25 Oct 2011 03:49:24 -0700 (PDT) Received: by 10.180.85.4 with HTTP; Tue, 25 Oct 2011 03:49:24 -0700 (PDT) X-Originating-IP: [87.139.40.39] In-Reply-To: References: <4E208FE7.4020606@sugarcrm.com> Date: Tue, 25 Oct 2011 12:49:24 +0200 Message-ID: To: "guilhermeblanco@gmail.com" Cc: David Coallier , Pierre Joye , Mike Willbanks , PHP Internals List Content-Type: multipart/alternative; boundary=000e0cd574eee8670404b01d4aa8 Subject: Re: [PHP-DEV] SplClassLoader From: kontakt@beberlei.de (Benjamin Eberlei) --000e0cd574eee8670404b01d4aa8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I think the following two requirements should be covered by configuration aswell: 1. Have the autoloader be silent, i.e. doing a file_exists() check. API ide= a $loader =3D new SplClassLoader(..., SplClassLoader::SILENT); 2. Have a ASSERT_CLASS_EXISTS mode, i.e. after the require an "if(!class_exists($class))" =3D> throw new LogicException("SplClassLoader expects class $class to be in $file, but after requiring the file this clas= s is still not loaded."); API here aswell "new SplCloassLoader(..., SplClassLoader::ASSERT_CLASS_EXISTS)" greetings, Benjamin On Tue, Oct 25, 2011 at 4:39 AM, guilhermeblanco@gmail.com < guilhermeblanco@gmail.com> wrote: > Hi internals, > > For all those interested, I have updated the RFC with better > explanation, included example implementation and also example usage. > If you have any other wishes, doubts, etc, feel free to ask on this > thread and I'll quickly answer here and also update the RFC > accordingly. > > The url for the RFC is: https://wiki.php.net/rfc/splclassloader > > Cheers, > > On Mon, Oct 24, 2011 at 7:55 PM, David Coallier wrote: > >> > >> Could you open a FR at bugs.php.net and attach the patch to it please? > >> Could be easier to track (and the # to the RFC too :) > >> > > > > Yeah I'll do that once I have the tests adjusted and once I know the > > patch actually works as expected. > > > > -- > > David Coallier > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > -- > Guilherme Blanco > Mobile: +55 (11) 8118-4422 > MSN: guilhermeblanco@hotmail.com > S=E3o Paulo - SP/Brazil > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --000e0cd574eee8670404b01d4aa8--