1--TEST--
2Make sure is_callable error does not leak if an exception is also thrown
3--FILE--
4<?php
5spl_autoload_register(function ($class) {
6    throw new Exception("Failed");
7});
8try {
9    array_map('A::b', []);
10} catch (Exception $e) {
11    echo $e->getMessage(), "\n";
12}
13?>
14--EXPECT--
15Failed
16