1--TEST-- 2Observer: call_user_func_array() 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(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} 25namespace { 26 call_user_func_array('Test\\MyClass::myMethod', ['called']); 27 call_user_func_array('Test\\my_function', ['called']); 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