Re: Namespace Global User Function Calls
| From: | Stanislav Malyshev | Date: | Wed, 20 Aug 2008 20:39:30 +0000 |
| Subject: | Re: Namespace Global User Function Calls | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-40027@lists.php.net to get a copy of this message | ||
Hi!
I can't seem to get global user function calls to work from namespaces in the latest 5.3 snaps. This is on Win XP SP2 using Apache 2.2.8 and the php5apache2_2.dll. Example: global_file.php --------------- require 'namespace_file.php'; function globalFunc() {Tried this code (adding echo before 'Global Called!' so that it would actually output something) - works just fine. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com'Global Called!';} TestNS::callGlobalFunc(); namespace_file.php ------------------ namespace TestNS; function callGlobalFunc() {::globalFunc();}