Re: AW: [PHP-DEV] Namespace resolution

From: Date: Tue, 11 Dec 2007 23:24:31 +0000
Subject: Re: AW: [PHP-DEV] Namespace resolution
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.internals 
Request: Send a blank email to internals+get-33943@lists.php.net to get a copy of this message
namespace Name::Space; class Ship { public static function __autoload($className) {
    if(strpos($className, 'Name::Space::') === 0) {
      // the real deal
     }
} } ... spl_autoload_register(array('Name::Space::Ship', '__autoload')); No disk access. And with my suggestion to allow limiting autoloaders to
I don't understand. Is your autoloader going to do any disk accesses at all or it's just a stub that doesn't load any classes? If it does disk access, it would do it on any internal class access inside namespace Name::Space. Please explain me in detail how it could ever happen otherwise. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#33943) next »