xref: /PHP-7.0/Zend/tests/try/try_finally_006.phpt (revision 25d327e5)
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--EXPECTF--
25label
26okey
27