mirror of
https://github.com/php/php-src.git
synced 2024-09-29 05:46:06 +00:00
ea5c66ec93
Also add two tests showing that the -1 substraction in the computation of op_num is really necessary.
20 lines
209 B
PHP
20 lines
209 B
PHP
--TEST--
|
|
Aborted yield during switch
|
|
--FILE--
|
|
<?php
|
|
|
|
function gen($x) {
|
|
switch ($x."y") {
|
|
default:
|
|
yield;
|
|
}
|
|
}
|
|
|
|
$gen = gen("x");
|
|
$gen->rewind();
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|