Re: [RFC] Function autoloading through spl_autoload*
| From: | Sebastian Krebs | Date: | Fri, 12 Aug 2011 10:12:07 +0000 |
| Subject: | Re: [RFC] Function autoloading through spl_autoload* | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54516@lists.php.net to get a copy of this message | ||
Hi,
2011/8/12 Ferenc Kovacs <tyra3l@gmail.com>
> On Sat, Aug 6, 2011 at 2:24 PM, Ryan McCue <lists@rotorised.com> wrote:
> > Ferenc Kovacs wrote:
> >> I would like to introduce this RFC which would provide function
> >> autoloading through the spl_autoload facility without userland BC
> >> breakage.
> >
> > Shouldn't the default type be T_CLASS|T_INTERFACE?
> >
>
> sorry for the late reply.
> judging from your reply and the conversion on irc with Etienne, I
> think that the usage of the token constants are ambiguous(we have
> different token constants for classes and interfaces as you mentioned
> for example).
> originally I chose this because this would be fully backward
> compatible, but now I think that we should add new constants.
> what do you think?
>
From the users point of view I don't care. It's just another constant. Also
constants like
SPL_AUTOLOAD_CLASS
SPL_AUTOLOAD_FUNCTION
SPL_AUTOLOAD_CONSTANT
seems to be more obvious, because it reflects, that it belongs to
spl-autoload.
>
> --
> Ferenc Kovács
> @Tyr43l - http://tyrael.hu
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>