Re: Question about Namespace patch
| From: | Stanislav Malyshev | Date: | Wed, 25 Jul 2007 01:13:52 +0000 |
| Subject: | Re: Question about Namespace patch | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-31251@lists.php.net to get a copy of this message | ||
there is a __NAMESPACE__ constant, which is nice. Is there also a way to get the "full name" of a function or class, so you can see where it came from? Does import work for functions as well as classes?Inside namespace it's __NAMESPACE__.'::'.$short_name (yes, '::name' would be the same as just 'name'). Outside there's currently no way to do it automatically (i.e. resolve imports). -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com