Download src/php/php-src/ext/reflection/tests/027.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 302 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/reflection/tests/027.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/reflection/tests/027.phpt
-
curl -L -o 027.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/reflection/tests/027.phpt
302 Bytes
| --TEST-- | |
| ReflectionGenerator::getTrace() | |
| --FILE-- | |
| function foo() | |
| { | |
| yield 1; | |
| } | |
| $g = foo(); | |
| $r = new ReflectionGenerator($g); | |
| $g->next(); | |
| try { | |
| $r->getTrace(); | |
| } catch (ReflectionException $e) { | |
| echo $e->getMessage(); | |
| } | |
| --EXPECT-- | |
| Cannot fetch information from a closed Generator | |