1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/Zend/tests/bug68775.phpt
Nikita Popov 41a249fef6 Fix bug #68775
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)