callable_param_exception_leak.phpt 292 B

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