Re: [RFC] Function autoloading through spl_autoload*
| From: | Sebastian Krebs | Date: | Mon, 15 Aug 2011 06:21:13 +0000 |
| Subject: | Re: [RFC] Function autoloading through spl_autoload* | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54610@lists.php.net to get a copy of this message | ||
Hi,
2011/8/15 Stas Malyshev <smalyshev@sugarcrm.com>
> Hi!
>
>
> On 8/14/11 9:35 PM, Sebastian Krebs wrote:
>
>> Now I'm getting a little bit confused: About which new/changing
>> semantics you are talking about? I want to use custom functions, that
>> exists, since the language itself exists, but I want to get rid of
>> unnecessary
[include|require]_once()-**calls.
>>
>
> You want to change how autoloader works. This would also be a problem with
> global function callback for namespaces (http://www.php.net/manual/en/**
>
> language.namespaces.fallback.**php<http://www.php.net/manual/en/language.namespaces.fallback.php>)
> since each call to, say, strlen would produce an autoloader call.
I already made an suggestion [1], that bypass this.
>
>
> --
> Stanislav Malyshev, Software Architect
> SugarCRM: http://www.sugarcrm.com/
> (408)454-6900 ext. 227
>
Regards,
Sebastian
[1] http://marc.info/?l=php-internals&m=131332512514686&w=2