Re: Namespace resolution rules has been changed?
| From: | Jaroslav Hanslík | Date: | Mon, 10 Nov 2008 19:30:24 +0000 |
| Subject: | Re: Namespace resolution rules has been changed? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41838@lists.php.net to get a copy of this message | ||
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 GrudlI'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