summaryrefslogtreecommitdiff
path: root/Zend/tests/temporary_cleaning_010.phpt
blob: 122a0b28a76aab0b5cd863a789c91fd1aeda52f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Live range & throw from finally
--FILE--
<?php
function test() {
    try {
        $a = [1, 2, 3];
        return $a + [];
    } finally {
        throw new Exception;
    }
}

try {
    test();
} catch (Exception $e) {
    echo "exception\n";
}
?>
--EXPECT--
exception