1--TEST--
2Generator backtrace with multi yield from
3--FILE--
4<?php
5
6function gen() {
7    yield 1;
8    debug_print_backtrace();
9    yield 2;
10}
11
12function from($gen) {
13    yield from $gen;
14}
15
16$gen1 = gen();
17$gen2 = from($gen1);
18$gen3 = from($gen2);
19var_dump($gen3->current());
20$gen2->next();
21var_dump($gen2->current());
22$gen2->next();
23var_dump($gen2->current());
24
25?>
26--EXPECTF--
27int(1)
28int(1)
29#0 %s(10): gen()
30#1 [internal function]: from(Object(Generator))
31#2 %s(19): Generator->next()
32int(2)
33