Download src/php/php-src/Zend/tests/foreach/bug35106.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 206 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/foreach/bug35106.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/foreach/bug35106.phpt
-
curl -L -o bug35106.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/foreach/bug35106.phpt
206 Bytes
| --TEST-- | |
| Bug #35106 (nested foreach fails when array variable has a reference) | |
| --FILE-- | |
| $a=array("1","2"); | |
| $b=&$a; | |
| foreach($a as $i){ | |
| echo $i; | |
| foreach($a as $p); | |
| } | |
| echo "\n"; | |
| --EXPECT-- | |
| 12 | |