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