php-src/Zend/tests/callable_param_exception_leak.phpt

15 lines
292 B
PHP

--TEST--
Make sure is_callable error does not leak if an exception is also thrown
--FILE--
<?php
spl_autoload_register(function ($class) {
throw new Exception("Failed");
});
try {
array_map('A::b', []);
} catch (Exception $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Failed