1--TEST--
2Yielding from the already running Generator should fail (bug #69458)
3--FILE--
4<?php
5
6function gen() {
7    yield from yield;
8}
9
10($gen = gen())->send($gen);
11
12?>
13--EXPECTF--
14Fatal error: Uncaught Error: Impossible to yield from the Generator being currently run in %s:%d
15Stack trace:
16#0 [internal function]: gen()
17#1 %s(%d): Generator->send(Object(Generator))
18#2 {main}
19  thrown in %s on line %d
20