summaryrefslogtreecommitdiff
path: root/Zend/tests/bug71163.phpt
blob: ad2af2d24ca70f2c7ccf1afbb77aa5694c2e3e2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Bug #71163 (Segmentation Fault (cleanup_unfinished_calls))
--FILE--
<?php
function __autoload($name) {
	eval ("class $name extends Exception { public static function foo() {}}");
	throw new Exception("boom");
}

function test2() {
	try {
		Test::foo();
	} catch (Exception $e) {
		echo "okey";
	}
}

function test() {
	test2();
}

test();
?>
--EXPECT--
okey