Re: Namespaces and __autoload()
| From: | Stanislav Malyshev | Date: | Mon, 27 Aug 2007 21:49:53 +0000 |
| Subject: | Re: Namespaces and __autoload() | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-31945@lists.php.net to get a copy of this message | ||
afaict you would not be able to autoload class Exception from within namespace Foo in the example below.I think if you want it to work you don't have to autoload it/
I would consider making internal class names illegal in namespaces. this would be consistent simple and clear.It's one of the options, but I'm not sure it's the best one. Opinions welcome. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com