Re: [PHP-DEV] Namespace Global User Function Calls

2008-08-21 Thread Dmitry Stogov
Don't you forget the "echo"? Dmitry. Ryan Panning wrote: 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';

Re: [PHP-DEV] Namespace Global User Function Calls

2008-08-21 Thread Ryan Panning
Stanislav Malyshev wrote: Hi! Tried this code (adding echo before 'Global Called!' so that it would actually output something) - works just fine. I noticed that error yesterday when I was testing on another computer. It did work on this computer. I'll have to go back today to the first compute

Re: [PHP-DEV] Namespace Global User Function Calls

2008-08-21 Thread Ryan Panning
Stanislav Malyshev wrote: Hi! Tried this code (adding echo before 'Global Called!' so that it would actually output something) - works just fine. I noticed that error yesterday when I was testing on another computer. It did work on this computer. I'll have to go back today to the first compu

Re: [PHP-DEV] Namespace Global User Function Calls

2008-08-20 Thread Stanislav Malyshev
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() { 'Global Called!'; } TestN