xref: /PHP-8.3/Zend/tests/bug19859.phpt (revision a8d901a8)
1--TEST--
2Bug #19859 (__call() does not catch call_user_func_array() calls)
3--FILE--
4<?php
5class test
6{
7  function __call($method,$args)
8  {
9    print "test::__call invoked for method '$method'\n";
10  }
11}
12$x = new test;
13$x->fake(1);
14call_user_func_array(array($x,'fake'),array(1));
15call_user_func(array($x,'fake'),2);
16?>
17--EXPECT--
18test::__call invoked for method 'fake'
19test::__call invoked for method 'fake'
20test::__call invoked for method 'fake'
21