bug19859.phpt 447 B

1234567891011121314151617181920
  1. --TEST--
  2. Bug #19859 (__call() does not catch call_user_func_array() calls)
  3. --FILE--
  4. <?php
  5. class 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);
  14. call_user_func_array(array($x,'fake'),array(1));
  15. call_user_func(array($x,'fake'),2);
  16. ?>
  17. --EXPECT--
  18. test::__call invoked for method 'fake'
  19. test::__call invoked for method 'fake'
  20. test::__call invoked for method 'fake'