RE: [PHP-DEV] Namespaces and __autoload()

From: Date: Tue, 28 Aug 2007 08:17:23 +0000
Subject: RE: [PHP-DEV] Namespaces and __autoload()
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-31952@lists.php.net to get a copy of this message
Existing __autoload() will work fine with code without namespaces. Dmitry. > -----Original Message----- > From: Derick Rethans [mailto:derick@php.net] > Sent: Tuesday, August 28, 2007 11:44 AM > To: Dmitry Stogov > Cc: 'PHP Internals List' > Subject: Re: [PHP-DEV] Namespaces and __autoload() > > > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.internals (#31952) next »