xref: /PHP-8.0/Zend/tests/try/try_finally_008.phpt (revision 25d327e5)
1--TEST--
2Try finally (with break in do...while)
3--FILE--
4<?php
5function foo () {
6    do {
7        try {
8            try {
9            } finally {
10                break;
11            }
12        } catch (Exception $e) {
13        } finally {
14        }
15    } while (0);
16}
17
18foo();
19?>
20--EXPECTF--
21Fatal error: jump out of a finally block is disallowed in %stry_finally_008.php on line %d
22