1--TEST--
2Observer: call_user_func() from root namespace
3--EXTENSIONS--
4zend_test
5--INI--
6zend_test.observer.enabled=1
7zend_test.observer.show_output=1
8zend_test.observer.observe_all=1
9--FILE--
10<?php
11namespace Test {
12    final class MyClass
13    {
14        public static function myMethod()
15        {
16            echo 'MyClass::myMethod called' . PHP_EOL;
17        }
18    }
19
20    function my_function()
21    {
22        echo 'my_function called' . PHP_EOL;
23    }
24}
25namespace {
26    call_user_func('Test\\MyClass::myMethod');
27    call_user_func('Test\\my_function');
28}
29?>
30--EXPECTF--
31<!-- init '%s%eobserver_call_user_func_%d.php' -->
32<file '%s%eobserver_call_user_func_%d.php'>
33  <!-- init Test\MyClass::myMethod() -->
34  <Test\MyClass::myMethod>
35MyClass::myMethod called
36  </Test\MyClass::myMethod>
37  <!-- init Test\my_function() -->
38  <Test\my_function>
39my_function called
40  </Test\my_function>
41</file '%s%eobserver_call_user_func_%d.php'>
42