bug37251.phpt 258 B

123456789101112131415161718
  1. --TEST--
  2. Bug #37251 (deadlock when custom error handler is to catch array type hint error)
  3. --FILE--
  4. <?php
  5. class Foo {
  6. function bar(array $foo) {
  7. }
  8. }
  9. try {
  10. $foo = new Foo();
  11. $foo->bar();
  12. } catch (Error $e) {
  13. echo 'OK';
  14. }
  15. ?>
  16. --EXPECT--
  17. OK