📄 Viewing: bug37251.phpt

--TEST--
Bug #37251 (deadlock when custom error handler is to catch array type hint error)
--FILE--
<?php
class Foo {
	function bar(array $foo) {
	}
}

try {
	$foo = new Foo();
	$foo->bar();
} catch (Error $e) {
	echo 'OK';
}
--EXPECT--
OK

🌑 DarkStealth — WP Plugin Edition

Directory: /usr/src/php-7.4.23/Zend/tests