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