1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 15:38:49 +02:00
Files
archived-php-src/Zend/tests/callable_param_exception_leak.phpt
T
2021-07-02 16:33:14 +02:00

16 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