Download src/php/php-src/Zend/tests/generators/bug72523.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 218 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/generators/bug72523.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/generators/bug72523.phpt
-
curl -L -o bug72523.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/generators/bug72523.phpt
218 Bytes
| --TEST-- | |
| Bug #72523 (dtrace issue with reflection (failed test)) | |
| --FILE-- | |
| $gen = (new class() { | |
| function a() { | |
| yield "okey"; | |
| } | |
| })->a(); | |
| var_dump($gen->current()); | |
| --EXPECT-- | |
| string(4) "okey" | |