1--TEST--
2Try catch finally catch(multi catch blocks)
3--FILE--
4<?php
5
6class AE extends Exception {};
7class BE extends Exception {};
8
9function foo () {
10    try {
11        try {
12            try {
13                try {
14                   echo "1";
15                   throw new Exception("try");
16                } catch (AE $e) {
17                   die("error");
18                } finally {
19                   echo "2";
20                }
21            } finally {
22                echo "3";
23            }
24        } catch (BE $e) {
25            die("error");
26        } finally {
27            echo "4";
28        }
29    } catch (Exception $e) {
30        echo "5";
31    } catch (AE $e) {
32        die("error");
33    } finally {
34        echo "6";
35    }
36   return 7;
37}
38
39var_dump(foo());
40?>
41--EXPECT--
42123456int(7)
43