[PHP-DEV] RFC __autodefine / spl_autodefine

2010-12-06 Thread Loon, Reinier van
RFC __autodefine / spl_autodefine This proposal proposes to introduce one function for automagically defining missing definitions at run time. The reader should have a reasonable level of PHP knowledge and computer languages when reading this proposal. Note: Whenever __autodefine is used, also spl

[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

[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