xref: /PHP-8.3/Zend/tests/try/try_finally_006.phpt (revision ded3d984)
1--TEST--
2Try finally (with near goto)
3--FILE--
4<?php
5function foo () {
6   $jmp = 1;
7   try {
8   } finally {
9previous:
10       if ($jmp) {
11           goto label;
12           echo "dummy";
13label:
14           echo "label\n";
15           $jmp = 0;
16           goto previous;
17       }
18       echo "okey";
19   }
20}
21
22foo();
23?>
24--EXPECT--
25label
26okey
27