Existing __autoload() will work fine with code without namespaces. Dmitry.
> -----Original Message----- > From: Derick Rethans [mailto:[EMAIL PROTECTED] > 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 > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php