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

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

try {
    exit("Exit\n");
} catch (Throwable $e) {
    echo "Not caught\n";
} finally {
    echo "Finally\n";
}
echo "Not executed\n";

?>
--EXPECT--
Exit