Re: [PHP-DEV] Re: RFC __autodefine / spl_autodefine

2010-12-08 Thread Larry Garfield
On Wednesday, December 08, 2010 6:05:05 am Loon, Reinier van wrote: > > With that said, I like the idea of generalizing autoload to include > > functions et al. Autoloading functions would make my life a lot easier. > > :-) > > Yes, the alternative solution is to write a wrapper function: > some

[PHP-DEV] Re: RFC __autodefine / spl_autodefine

2010-12-08 Thread Loon, Reinier van
> __autoload() works fine if you have exactly one implementation for your entire > system with exactly one set of logic for how to map a class name to a file > name. As soon as you try to mix two different libraries together, fatal > error. > > spl_autoload() does not suffer from this short-sighte

[PHP-DEV] Re: RFC __autodefine / spl_autodefine

2010-12-08 Thread Loon, Reinier van
All, I made a RFC in the Wiki for autodefine. http://wiki.php.net/rfc/autodefine Cheers, Reinier -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php