1--TEST--
2Try catch finally (basic test with return)
3--FILE--
4<?php
5function foo () {
6 try {
7 echo "try\n";
8 return 1;
9 } catch (Exception $e) {
10 } finally {
11 echo "finally\n";
12 }
13 return 2;
14}
15
16var_dump(foo());
17?>
18--EXPECT--
19try
20finally
21int(1)
22