xref: /PHP-8.0/Zend/tests/bug37251.phpt (revision 7aacc705)
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?>
17--EXPECT--
18OK
19