Download src/php/php-src/Zend/tests/generators/bug69989_1.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 178 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/generators/bug69989_1.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/generators/bug69989_1.phpt
-
curl -L -o bug69989_1.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/generators/bug69989_1.phpt
178 Bytes
| --TEST-- | |
| Bug #69989: Cycle collection for yielded values | |
| --FILE-- | |
| function gen() { | |
| yield yield; | |
| } | |
| $gen = gen(); | |
| $gen->send($gen); | |
| ===DONE=== | |
| --EXPECT-- | |
| ===DONE=== | |