Now __autoload have only one argument which is a name of searched class.
Second argument could be a namespace where class is searched. It should have default value for backward compatibility.
What for? It always receives full name of the class, whatever it is.
I think it is the most flexible solution. It allows to create very useful and effective mapping mechanisms.
I don't see any reason to complicate the API - if you need it in your autoload, you can easily split the full name into parts before and after the final :: and achieve the same effect.
--
Stanislav Malyshev, Zend Software Architect
stas@zend.com http://www.zend.com/
(408)253-8829 MSN: stas@zend.com