xref: /PHP-5.6/Zend/tests/try_finally_005.phpt (revision 60a29791)
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