1--TEST--
2A generator can be yielded from multiple times, testing immediate release of the yield from'ing generator
3--FILE--
4<?php
5
6function gen() {
7    yield 42;
8}
9function yield_from($gen) {
10    yield from $gen;
11}
12$gen = gen();
13var_dump(yield_from($gen)->current());
14var_dump(yield_from($gen)->current());
15
16?>
17--EXPECT--
18int(42)
19int(42)
20