1--TEST--
2Aborted yield during switch
3--FILE--
4<?php
5
6function gen($x) {
7    switch ($x."y") {
8        default:
9            yield;
10    }
11}
12
13$gen = gen("x");
14$gen->rewind();
15
16?>
17===DONE===
18--EXPECT--
19===DONE===
20