xref: /php-src/Zend/tests/try/try_finally_021.phpt (revision f8d79582)
1--TEST--
2Live range & return from finally
3--FILE--
4<?php
5$array = [1];
6foreach ([0] as $_) {
7    foreach ($array as $v) {
8        try {
9            echo "ok\n";
10            return;
11        } finally {
12            echo "ok\n";
13            return;
14        }
15    }
16}
17?>
18--EXPECT--
19ok
20ok
21