Download src/php/php-src/Zend/tests/generators/bug67497.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 268 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/generators/bug67497.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/generators/bug67497.phpt
-
curl -L -o bug67497.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/generators/bug67497.phpt
268 Bytes
| --TEST-- | |
| Bug #67467: eval with parse error causes segmentation fault in generator | |
| --FILE-- | |
| function gen() { | |
| $a = 1; | |
| yield $a; | |
| } | |
| try { | |
| eval('abc'); | |
| } catch (ParseError $ex) { | |
| } | |
| $values = gen(); | |
| $values->next(); | |
| ===DONE=== | |
| --EXPECT-- | |
| ===DONE=== | |