Re: namespace implementation (irritating warning and autoload)
| From: | Stanislav Malyshev | Date: | Mon, 07 Apr 2008 20:16:55 +0000 |
| Subject: | Re: namespace implementation (irritating warning and autoload) | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36857@lists.php.net to get a copy of this message | ||
Hi!
Executing the code above results in a warning: "The use statement with non-compound name 'Test1' has no effect in [...]".This is correct, use Test1 is a no-op.
I understand the rationale behind this warning but it simply isn't true: omitting the use statement results in a fatal error: "Class 'Test2::Test1' not found in [...]".This seems to be a bug. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com