summaryrefslogtreecommitdiff
path: root/Zend/tests/exit_finally_2.phpt
blob: 0a3f5dc7a1d152c03f7323300c97557685441cd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
exit() and finally (2)
--FILE--
<?php

// TODO: In the future, we should execute the finally block.

try {
    try {
        exit("Exit\n");
    } catch (Throwable $e) {
        echo "Not caught\n";
    } finally {
        throw new Exception("Finally exception");
    }
    echo "Not executed\n";
} catch (Exception $e) {
    echo "Caught {$e->getMessage()}\n";
}

?>
--EXPECT--
Exit