xref: /PHP-7.1/Zend/tests/try/try_finally_010.phpt (revision 25d327e5)
1--TEST--
2Try finally (function call in the finally block after exception)
3--FILE--
4<?php
5function foo() {
6	echo "4";
7}
8function bar() {
9	try {
10		echo "2";
11		throw new Exception();
12		echo "x";
13	} catch (MyEx $ex) {
14		echo "x";
15	} finally {
16		echo "3";
17		foo();
18		echo "5";
19	}
20}
21try {
22	echo "1";
23	bar();
24	echo "x";
25} catch (Exception $ex) {
26	echo "6";
27}
28echo "\n";
29--EXPECT--
30123456
31