bug44487.phpt 422 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Bug #44487 (call_user_method_array issues a warning when throwing an exception)
  3. --INI--
  4. error_reporting = E_ALL & ~E_DEPRECATED
  5. --FILE--
  6. <?php
  7. class Foo
  8. {
  9. public function test()
  10. {
  11. print 'test';
  12. throw new Exception();
  13. }
  14. }
  15. try {
  16. $bar = new Foo();
  17. call_user_method_array('test', $bar, array()) ;
  18. } catch (Exception $e) {
  19. }
  20. ?>
  21. --EXPECT--
  22. test