summaryrefslogtreecommitdiff
path: root/Zend/tests/bug37251.phpt
blob: 0e5ac8fd4850ef4825713133243a683058795be6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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