diff options
| -rw-r--r-- | Zend/tests/bug37251.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Zend/tests/bug37251.phpt b/Zend/tests/bug37251.phpt new file mode 100644 index 0000000000..320d544ce5 --- /dev/null +++ b/Zend/tests/bug37251.phpt @@ -0,0 +1,19 @@ +--TEST-- +Bug #37251 (deadlock when custom error handler is to catch array type hint error) +--FILE-- +<?php +function error_handler($errno, $errstr, $errfile, $errline, $context) { + echo 'OK'; +} + +set_error_handler('error_handler'); + +class Foo { + function bar(array $foo) { + } +} + +$foo = new Foo(); +$foo->bar(); +--EXPECT-- +OK |
