php-src/Zend/tests/bug37251.phpt
Dmitry Stogov 1c94ff0595 Implement engine exceptions
RFC: https://wiki.php.net/rfc/engine_exceptions_for_php7

Pending changes regarding naming of BaseException and whether it
should be an interface.
2015-03-09 14:01:32 +01:00

18 lines
252 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 (EngineException $e) {
echo 'OK';
}
--EXPECT--
OK