php-src/Zend/tests/bug68775.phpt
2015-01-09 17:59:41 +01:00

20 lines
216 B
PHP

--TEST--
Bug #68775: yield in a function argument crashes or loops indefinitely
--FILE--
<?php
function a($x) {
var_dump($x);
}
function gen() {
a(yield);
}
$g = gen();
$g->send(1);
?>
--EXPECT--
int(1)