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