Download src/php/php-src/ext/opcache/tests/opt/gh8074.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 220 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/opt/gh8074.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/opcache/tests/opt/gh8074.phpt
-
curl -L -o gh8074.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/tests/opt/gh8074.phpt
220 Bytes
| --TEST-- | |
| GH-8074 (Wrong type inference of range() result) | |
| --FILE-- | |
| function test() { | |
| $array = range(1, "2"); | |
| foreach ($array as $i) { | |
| var_dump($i + 1); | |
| } | |
| } | |
| test(); | |
| --EXPECT-- | |
| int(2) | |
| int(3) | |