xref: /php-src/Zend/tests/bug68775.phpt (revision 41a249fe)
1--TEST--
2Bug #68775: yield in a function argument crashes or loops indefinitely
3--FILE--
4<?php
5
6function a($x) {
7    var_dump($x);
8}
9
10function gen() {
11     a(yield);
12}
13
14$g = gen();
15$g->send(1);
16
17?>
18--EXPECT--
19int(1)
20