Download src/php/php-src/Zend/tests/generators/bug68775.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 216 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/generators/bug68775.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/generators/bug68775.phpt
-
curl -L -o bug68775.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/generators/bug68775.phpt
216 Bytes
| --TEST-- | |
| Bug #68775: yield in a function argument crashes or loops indefinitely | |
| --FILE-- | |
| function a($x) { | |
| var_dump($x); | |
| } | |
| function gen() { | |
| a(yield); | |
| } | |
| $g = gen(); | |
| $g->send(1); | |
| --EXPECT-- | |
| int(1) | |