summaryrefslogtreecommitdiff
path: root/Zend/tests/bug37251.phpt
blob: 320d544ce59f45aa8f4a53303180fa382ab722ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Bug #37251 (deadlock when custom error handler is to catch array type hint error) 
--FILE--
<?php
function error_handler($errno, $errstr, $errfile, $errline, $context) {
	echo 'OK';
}

set_error_handler('error_handler');

class Foo {	
	function bar(array $foo) {
	}
}

$foo = new Foo();
$foo->bar();
--EXPECT--
OK