Re: RE : Namespaces and __autoload()

From: Date: Wed, 12 Sep 2007 16:50:50 +0000
Subject: Re: RE : Namespaces and __autoload()
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-32298@lists.php.net to get a copy of this message
function doSomething (Service s) {...} PHP tries to autoload type Service, but it can't know if it's looking
Actually, in this case (and in any case where type of existing object is checked) autoloading is unnecessary (and it's a bug if it happens) since if the type Service is not loaded, there can be no objects of this type, thus we can decide the question of "is object s of type Service" without loading anything - the answer would be "no". -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#32298) next »