summaryrefslogtreecommitdiff
path: root/Zend/tests/bug19859.phpt
blob: 6eb1701e7b00b328776378755d726c543fc8a392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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'