Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55970 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61092 invoked from network); 27 Oct 2011 02:30:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Oct 2011 02:30:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:37737] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/A1-51192-B42C8AE4 for ; Wed, 26 Oct 2011 22:30:35 -0400 Received: by vcbfl10 with SMTP id fl10so2251113vcb.29 for ; Wed, 26 Oct 2011 19:30:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=bmPMG7TbZn4CofUDhp+Fz7OWrhE5wBYn7EzaOo1TMYY=; b=b0hDAVaT0a8sf3kkf2HRP5nEt+TnMemEtZPN2h6ZNodI+kAnTytMlN9sklAOeW464E fg7ayshUqbkql6w34FADbd4c6blucPHE5dVQLhHQYNkXwNY21fOH7pJtGn1vpIlwHfZL Mk6aNq7yR6zn9pLOpaYpkWgAB2q7Eg9BubP3Q= Received: by 10.220.140.146 with SMTP id i18mr717395vcu.75.1319682632157; Wed, 26 Oct 2011 19:30:32 -0700 (PDT) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.220.190.140 with HTTP; Wed, 26 Oct 2011 19:30:12 -0700 (PDT) In-Reply-To: References: <4E208FE7.4020606@sugarcrm.com> Date: Thu, 27 Oct 2011 10:30:12 +0800 X-Google-Sender-Auth: -NEC85XTI0C-zh7mk-hPNQ41hCI Message-ID: To: =?UTF-8?B?QW5kcsOpIFLDuG1ja2U=?= Cc: "guilhermeblanco@gmail.com" , David Coallier , Pierre Joye , Mike Willbanks , PHP Internals List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] SplClassLoader From: laruence@php.net (Laruence) 2011/10/26 Andr=C3=A9 R=C3=B8mcke : > 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 mea= ning in the > namespace. > > is changed to > * Each =E2=80=9C_=E2=80=9D character in the CLASS NAME and NAMESPACE is c= onverted to a > DIRECTORY_SEPARATOR. There is a internal autoloader in Yaf(http://svn.php.net/viewvc/pecl/yaf/trunk/yaf_loader.c?view=3Dmarkup), in it the T_NS_SEPARATOR will convert to be "_", then convert to be DIRECTORY_SEPARATOR. thanks > > 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 =C2=A0(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 >> >> > --=20 Laruence =C2=A0Xinchen Hui http://www.laruence.com/