mirror of
https://github.com/php/php-src.git
synced 2024-12-17 13:59:28 +08:00
21 lines
447 B
PHP
21 lines
447 B
PHP
--TEST--
|
|
Bug #19859 (__call() does not catch call_user_func_array() calls)
|
|
--FILE--
|
|
<?php
|
|
class test
|
|
{
|
|
function __call($method,$args)
|
|
{
|
|
print "test::__call invoked for method '$method'\n";
|
|
}
|
|
}
|
|
$x = new test;
|
|
$x->fake(1);
|
|
call_user_func_array(array($x,'fake'),array(1));
|
|
call_user_func(array($x,'fake'),2);
|
|
?>
|
|
--EXPECT--
|
|
test::__call invoked for method 'fake'
|
|
test::__call invoked for method 'fake'
|
|
test::__call invoked for method 'fake'
|