David Grudl napsal(a):
Hello!

This code leads to fatal error: Class 'Nette\Loaders\Nette\Object'. Is it a bug in current implementation or namespace resolution rules has been changed?

namespace Nette;

class Object

{}

namespace Nette\Loaders;

class AutoLoader extends Nette\Object

{}

$obj = new AutoLoader;



Thank you,
David Grudl

I'm maybe wrong but I think that namespace resolution rules has been changed. This should work:

namespace Nette\Loaders;

class AutoLoader extends \Nette\Object
{}

Regards,
Jaroslav Hanslík

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to