Download src/php/php-src/ext/pcre/tests/bug44191.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 197 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcre/tests/bug44191.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pcre/tests/bug44191.phpt
-
curl -L -o bug44191.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcre/tests/bug44191.phpt
197 Bytes
| --TEST-- | |
| Bug #44191 (preg_grep messes up array index) | |
| --FILE-- | |
| $array = range(1, 10); | |
| preg_grep('/asdf/', $array); | |
| foreach ($array as $k => $v) { | |
| print $k; | |
| } | |
| --EXPECT-- | |
| 0123456789 | |