Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55962 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74946 invoked from network); 26 Oct 2011 11:30:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Oct 2011 11:30:44 -0000 Authentication-Results: pb1.pair.com header.from=ar@ez.no; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ar@ez.no; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ez.no from 209.85.216.177 cause and error) X-PHP-List-Original-Sender: ar@ez.no X-Host-Fingerprint: 209.85.216.177 mail-qy0-f177.google.com Received: from [209.85.216.177] ([209.85.216.177:53007] helo=mail-qy0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7C/E5-37568-26FE7AE4 for ; Wed, 26 Oct 2011 07:30:43 -0400 Received: by qyk7 with SMTP id 7so1656790qyk.8 for ; Wed, 26 Oct 2011 04:30:40 -0700 (PDT) Received: by 10.68.22.101 with SMTP id c5mr57807761pbf.97.1319628639177; Wed, 26 Oct 2011 04:30:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.221.16 with HTTP; Wed, 26 Oct 2011 04:30:19 -0700 (PDT) In-Reply-To: References: <4E208FE7.4020606@sugarcrm.com> Date: Wed, 26 Oct 2011 13:30:19 +0200 Message-ID: To: "guilhermeblanco@gmail.com" Cc: David Coallier , Pierre Joye , Mike Willbanks , PHP Internals List Content-Type: multipart/alternative; boundary=bcaec5216025460b0e04b031fc2a Subject: Re: [PHP-DEV] SplClassLoader From: ar@ez.no (=?UTF-8?B?QW5kcsOpIFLDuG1ja2U=?=) --bcaec5216025460b0e04b031fc2a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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. > As sent to the PHP-SWG list, a small change / addition to PSR-0 would simplify the matching considerably. If this rule: * Each =E2=80=9C_=E2=80=9D character in the CLASS NAME is converted to a DIRECTORY_SEPARATOR. The =E2=80=9C_=E2=80=9D character has no special meani= ng in the namespace. is changed to * Each =E2=80=9C_=E2=80=9D character in the CLASS NAME and NAMESPACE is con= verted to a DIRECTORY_SEPARATOR. Or a strict mode is added to enable that, then you'll reduce 6 string function to 2, and still have backward support for PEAR class naming(w/o namespace). > 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=C3=A3o Paulo - SP/Brazil > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --bcaec5216025460b0e04b031fc2a--