xref: /PHP-8.0/Zend/tests/exit_finally_1.phpt (revision 75a04eac)
1--TEST--
2exit() and finally (1)
3--FILE--
4<?php
5
6// TODO: In the future, we should execute the finally block.
7
8try {
9    exit("Exit\n");
10} catch (Throwable $e) {
11    echo "Not caught\n";
12} finally {
13    echo "Finally\n";
14}
15echo "Not executed\n";
16
17?>
18--EXPECT--
19Exit
20