xref: /PHP-5.6/Zend/tests/bug37251.phpt (revision 77bc1f8b)
1--TEST--
2Bug #37251 (deadlock when custom error handler is to catch array type hint error)
3--FILE--
4<?php
5function error_handler($errno, $errstr, $errfile, $errline, $context) {
6	echo 'OK';
7}
8
9set_error_handler('error_handler');
10
11class Foo {
12	function bar(array $foo) {
13	}
14}
15
16$foo = new Foo();
17$foo->bar();
18--EXPECT--
19OK
20