summaryrefslogtreecommitdiff
path: root/Zend/tests/bug71163.phpt
blob: 102b1b93ec535885a77bff12007f7045dad8efe2 (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