Hi!
If I'm looking for a specific function, and it's in two include files, how do you know which namespace the function is written under? Some sort of manual backtrace?
Namespaces are local to files.
Is there a magic constant like __NAMESPACE__ or a function that can return the name of the namespace the code is currently running under?
"namespace the code is currently running under" is meaningless, since namespace is a compile-time concept. There is __NAMESPACE__ constant which is equal to currently compiles namespace.
http://www.php.net/manual/en/language.namespaces.nsconstants.php -- Stanislav Malyshev, Zend Software Architect s...@zend.com http://www.zend.com/ (408)253-8829 MSN: s...@zend.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php