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