Re: Namespaces bug
| From: | Stanislav Malyshev | Date: | Wed, 26 Mar 2003 18:10:50 +0000 |
| Subject: | Re: Namespaces bug | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-318@lists.php.net to get a copy of this message | ||
Noting to fix. This is by design.
AZ>> namespace A {
AZ>> namespace B{
AZ>> class C {
AZ>> function D() { print "asdf\n"; }
AZ>> }
AZ>> }
AZ>>
AZ>> }
AZ>>
AZ>> B::C::D();
AZ>>
AZ>> Apparently, the parser allows nesting namespaces, but they are all
AZ>> registered as global ones. Should be fixed, I think.
AZ>>
AZ>> -Andrei
AZ>> http://www.gravitonic.com/
AZ>>
AZ>> Windows 2000 is certified not to crash more than
AZ>> once a day, so what is the bootup time, 24 hours?
AZ>> -- Sam Liddicott
AZ>>
AZ>>
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.109