summaryrefslogtreecommitdiff
path: root/Zend/tests/try_finally_008.phpt
blob: cee37aedabfc20f3647eb005f34701d3e8ddc5fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Try finally (with break in do...while)
--FILE--
<?php
function foo () {
    do {
        try {
            try {
            } finally {
                break;
            }
        } catch (Exception $e) {
        } finally {
        }
    } while (0);
}

foo();
?>
--EXPECTF--
Fatal error: jump out of a finally block is disallowed in %stry_finally_008.php on line %d