xref: /php-src/Zend/tests/try/try_finally_007.phpt (revision 9c144e0d)
1--TEST--
2Try finally (with goto previous label)
3--FILE--
4<?php
5function foo () {
6    try {
7label:
8        echo "label";
9        try {
10        } finally {
11            goto label;
12            echo "dummy";
13        }
14    } catch (Exception $e) {
15    } finally {
16    }
17}
18
19foo();
20?>
21--EXPECTF--
22Fatal error: jump out of a finally block is disallowed in %stry_finally_007.php on line %d
23