mirror of
https://github.com/php/php-src.git
synced 2026-04-18 05:21:02 +02:00
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===
|