Re: AW: [PHP-DEV] Namespace resolution

From: Date: Tue, 11 Dec 2007 22:10:18 +0000
Subject: Re: AW: [PHP-DEV] Namespace resolution
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-33935@lists.php.net to get a copy of this message
Am 11.12.2007 um 22:31 schrieb Stanislav Malyshev:
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.
Even one autoloader is bad enough to not even have to consider the case of ten autoloaders. Remember, autoloader is filesystem access. Filesystem access on each class mention is a disaster.
A simple if(strpos($className 'My::Namespace::') === 0) will fix that just fine. - David

« previous php.internals (#33935) next »