1--TEST--
2yielding values from an array
3--FILE--
4<?php
5function from() {
6    yield 0;
7    yield from []; // must not yield anything
8    yield from [1,2];
9}
10
11function gen() {
12    yield from from();
13}
14
15foreach(gen() as $v) {
16    var_dump($v);
17}
18?>
19--EXPECT--
20int(0)
21int(1)
22int(2)
23