David Zülke schrieb:
Let's assume we have ten autoloaders. We are, by import, in namespace Name::Space. Someone does new DateTime();

You would now have to go through all ten autoloaders before you can decide that no userspace class DateTime exists in any namespace, and thus the PHP internal class DateTime may be used.

I would assume its the fault of the programmer if he does it this way. When he is absolutely sure he wants to use PHP's internal class he could just do a new ::DateTime() and everything would be fine, no autoload function would be called.

Regards,
Frank

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

Reply via email to