dis-bench / src /php /php-src /Zend /tests /generators /bug68775.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
216 Bytes
--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)