Download src/php/php-src/Zend/tests/foreach/bug41351_2.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 217 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/foreach/bug41351_2.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/foreach/bug41351_2.phpt
-
curl -L -o bug41351_2.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/foreach/bug41351_2.phpt
217 Bytes
| --TEST-- | |
| Bug #41351 (Invalid opcode with foreach ($a[] as $b)) - 2 | |
| --FILE-- | |
| $a = array(); | |
| foreach($a[]['test'] as $b) { | |
| } | |
| echo "Done\n"; | |
| --EXPECTF-- | |
| Fatal error: Cannot use [] for reading in %s on line %d | |