Re: RE : Namespaces and __autoload()

From: Date: Wed, 12 Sep 2007 17:28:53 +0000
Subject: Re: RE : Namespaces and __autoload()
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-32299@lists.php.net to get a copy of this message
W liście Stanislav Malyshev z dnia środa, 12 września 2007: > >> 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". All right, seems it was fixed in the meantime - http://bugs.php.net/bug.php?id=39003 -- Paweł Stradomski

« previous php.internals (#32299) next »