mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
15 lines
292 B
PHP
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
|