global_file.php
---------------
require 'namespace_file.php';
function globalFunc() {
'Global Called!';
}
TestNS::callGlobalFunc();
namespace_file.php
------------------
namespace TestNS;
function callGlobalFunc() {
::globalFunc();
}
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
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:
- [PHP-DEV] Namespace Global User Function Calls Ryan Panning
- Re: [PHP-DEV] Namespace Global User Function Calls Stanislav Malyshev
- Re: [PHP-DEV] Namespace Global User Function C... Ryan Panning
- Re: [PHP-DEV] Namespace Global User Function C... Ryan Panning
- Re: [PHP-DEV] Namespace Global User Function Calls Dmitry Stogov
