php-src/Zend/tests/bug68775.phpt

20 lines
216 B
Plaintext
Raw Normal View History

2015-01-09 16:58:41 +00:00
--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)