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