bug37251.phpt 240 B

1234567891011121314151617
  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. --EXPECT--
  16. OK