Download src/php/php-src/Zend/tests/generators/bug65035.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 186 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/generators/bug65035.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/generators/bug65035.phpt
-
curl -L -o bug65035.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/generators/bug65035.phpt
186 Bytes
| --TEST-- | |
| Bug #65035: yield / exit segfault | |
| --FILE-- | |
| function gen() { | |
| f(); | |
| yield; | |
| } | |
| function f() { | |
| exit('Done'); | |
| } | |
| $gen = gen(); | |
| $gen->current(); | |
| --EXPECT-- | |
| Done | |