<?php
namespace {
function foo($where) {
echo "{$where}:\n";
debug_print_backtrace();
}
call_user_func("foo", "No namespace");
echo "\n";
}
namespace bar {
call_user_func("foo", "In a namespace");
}
No namespace:
#0 /in/q3qk5(10): foo('No namespace')
In a namespace:
#0 [internal function]: foo('In a namespace')
#1 /in/q3qk5(18): call_user_func('foo', 'In a namespace')
No namespace:
#0 foo(No namespace) called at [/in/q3qk5:10]
In a namespace:
#0 foo(In a namespace)
#1 call_user_func(foo, In a namespace) called at [/in/q3qk5:18]