1--TEST--
2Try catch finally (with multi-returns and exception)
3--FILE--
4<?php
5function foo ($a) {
6   try {
7     throw new Exception("ex");
8   } catch (PdoException $e) {
9     die("error");
10   } catch (Exception $e) {
11     return 2;
12   } finally {
13     return 3;
14   }
15   return 1;
16}
17
18var_dump(foo("para"));
19?>
20--EXPECT--
21int(3)
22