bug71163.phpt 411 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. Bug #71163 (Segmentation Fault (cleanup_unfinished_calls))
  3. --FILE--
  4. <?php
  5. spl_autoload_register(function ($name) {
  6. eval ("class $name extends Exception { public static function foo() {}}");
  7. throw new Exception("boom");
  8. });
  9. function test2() {
  10. try {
  11. Test::foo();
  12. } catch (Exception $e) {
  13. echo "okey";
  14. }
  15. }
  16. function test() {
  17. test2();
  18. }
  19. test();
  20. ?>
  21. --EXPECT--
  22. okey