1--TEST--
2Aborted yield during object instantiation
3--FILE--
4<?php
5
6class Foo {
7    public function __construct() {}
8}
9
10function gen() {
11    $x = new Foo(yield);
12}
13
14gen()->rewind();
15
16?>
17===DONE===
18--EXPECT--
19===DONE===
20