summaryrefslogtreecommitdiff
path: root/Zend/tests/try_finally_010.phpt
blob: bbac8dd1e596237c5b228c1c6b6c4c0cae577c77 (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
26
27
28
29
30
--TEST--
Try finally (function call in the finaly block after exception)
--FILE--
<?php
function foo() {
	echo "4";
}
function bar() {
	try {
		echo "2";
		throw new Exception();
		echo "x";
	} catch (MyEx $ex) {
		echo "x";
	} finally {
		echo "3";
		foo();
		echo "5";
	}
}
try {
	echo "1";
	bar();
	echo "x";
} catch (Exception $ex) {
	echo "6";
}
echo "\n";
--EXPECT--
123456