summaryrefslogtreecommitdiff
path: root/Zend/tests/try/try_finally_025.phpt
blob: 7ca535bcf683d9a78a5e4d4c4382c6b3352246fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--TEST--
Throw in try of try/finally inside catch
--FILE--
<?php

function test() {
    try {
        throw new Exception(1);
    } catch (Exception $e) {
        try {
            throw new Exception(2);
        } finally {
        }
    }
}

try {
    test();
} catch (Exception $e) {
    echo $e, "\n";
}

?>
--EXPECTF--
Exception: 2 in %s:%d
Stack trace:
#0 %s(%d): test()
#1 {main}