xref: /PHP-7.3/Zend/tests/try/try_finally_025.phpt (revision 2ae21abd)
1--TEST--
2Throw in try of try/finally inside catch
3--FILE--
4<?php
5
6function test() {
7    try {
8        throw new Exception(1);
9    } catch (Exception $e) {
10        try {
11            throw new Exception(2);
12        } finally {
13        }
14    }
15}
16
17try {
18    test();
19} catch (Exception $e) {
20    echo $e, "\n";
21}
22
23?>
24--EXPECTF--
25Exception: 2 in %s:%d
26Stack trace:
27#0 %s(%d): test()
28#1 {main}
29