1--TEST--
2Try { yield } finally { yield }
3--FILE--
4<?php
5
6function foo() {
7    try {
8        echo "1";
9        yield "2";
10        echo "3";
11    } finally {
12        echo "4";
13        yield "5";
14        echo "6";
15    }
16    echo "7";
17}
18foreach (foo() as $x) {
19    echo $x;
20}
21--EXPECT--
221234567
23