> > Just a quick idea - what if requiring that autoloaders behave 
> > deterministically, that is, once a certain autoloader 
> > implementation 
> > has been given the possibility to find a class it will 
> > never be asked 
> > again (because it wouldn't find it later on either).
> 
> I'm not sure if it's a correct assumption to make in general case - 
> files can be created.

Currently, when an autoload handler is given the chance to load a class and it 
does not, maybe another handler will do. Either way, the script will terminate 
if no handler can find the class or the class will be available after that - so 
already now it is impossible that any given handler is called twice during the 
same execution for the same class name.

Maybe I'm missing some weird cases for opcode caches or otherwise embedded PHP 
though?

-mp.

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to