1--TEST--
2yield from parses too greedily
3--FILE--
4<?php
5
6function from1234($x) {
7  return $x;
8}
9
10function bar() {
11  yield 24;
12}
13
14function foo() {
15  yield from1234(42);
16  yield from(bar());
17}
18
19foreach (foo() as $value) {
20  var_dump($value);
21}
22?>
23--EXPECT--
24int(42)
25int(24)
26