xref: /PHP-8.1/Zend/tests/exit_finally_3.phpt (revision 75a04eac)
1--TEST--
2exit() and finally (3)
3--FILE--
4<?php
5
6// TODO: In the future, we should execute the finally block.
7
8function test() {
9    try {
10        exit("Exit\n");
11    } finally {
12        return 42;
13    }
14}
15var_dump(test());
16
17?>
18--EXPECT--
19Exit
20