Re: SplClassLoader
| From: | André Rømcke | Date: | Wed, 26 Oct 2011 11:30:19 +0000 |
| Subject: | Re: SplClassLoader | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-55962@lists.php.net to get a copy of this message | ||
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 “_” character in the CLASS NAME is converted to a
DIRECTORY_SEPARATOR. The “_” character has no special meaning in the
namespace.
is changed to
* Each “_” character in the CLASS NAME and NAMESPACE is converted 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 <davidc@php.net> 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ão Paulo - SP/Brazil
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>