xref: /PHP-8.1/Zend/tests/try/try_finally_005.phpt (revision 25d327e5)
1--TEST--
2Try finally (with long goto)
3--FILE--
4<?php
5function foo () {
6   try {
7   } finally {
8      goto label;
9   }
10label:
11   return 1;
12}
13
14foo();
15?>
16--EXPECTF--
17Fatal error: jump out of a finally block is disallowed in %stry_finally_005.php on line %d
18