Re: Namespaces and __autoload()

From: Date: Tue, 28 Aug 2007 07:43:41 +0000
Subject: Re: Namespaces and __autoload()
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-31951@lists.php.net to get a copy of this message
On Mon, 27 Aug 2007, Dmitry Stogov wrote: > In this case PHP first looks for Foo::Exception and only then for internal > Exception, but the first lookup may call __autoload (or corresponding SPL > functions) and it can emit error or throw exception. > > The patch provides an additional boolean argument to __autoload() that say > if class is really required. In case if it false, user code shouldn't emit > errors or throw exceptions. It looks like this is going to break BC. Are current autoload functions guaranteed to work with the new implementation? Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

« previous php.internals (#31951) next »