summaryrefslogtreecommitdiff
path: root/Zend/tests/bug37251.phpt
blob: 12d1e3d974c90e0e9c164972d49bfcb6342dd883 (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