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
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

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

Reply via email to