1--TEST--
2Yield from does not leave a dangling send target
3--FILE--
4<?php
5function gen1() {
6    yield from [yield];
7}
8
9$gen = gen1();
10$gen->send(new stdClass);
11
12function gen2() {
13    $x = yield;
14    yield from [1, 2, 3];
15}
16$gen = gen2();
17$gen->send(new stdClass);
18$gen->send(new stdClass);
19?>
20===DONE===
21--EXPECT--
22===DONE===
23