1--TEST--
2Observer: call_user_func_array() from 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(string $msg)
15        {
16            echo 'MyClass::myMethod ' . $msg . PHP_EOL;
17        }
18    }
19
20    function my_function(string $msg)
21    {
22        echo 'my_function ' . $msg . PHP_EOL;
23    }
24
25    call_user_func_array('Test\\MyClass::myMethod', ['called']);
26    call_user_func_array('Test\\my_function', ['called']);
27}
28?>
29--EXPECTF--
30<!-- init '%s%eobserver_call_user_func_%d.php' -->
31<file '%s%eobserver_call_user_func_%d.php'>
32  <!-- init Test\MyClass::myMethod() -->
33  <Test\MyClass::myMethod>
34MyClass::myMethod called
35  </Test\MyClass::myMethod>
36  <!-- init Test\my_function() -->
37  <Test\my_function>
38my_function called
39  </Test\my_function>
40</file '%s%eobserver_call_user_func_%d.php'>
41