mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
18 lines
240 B
PHP
18 lines
240 B
PHP
--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
|