Download src/php/php-src/ext/pcre/tests/bug72688.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 329 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcre/tests/bug72688.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pcre/tests/bug72688.phpt
-
curl -L -o bug72688.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcre/tests/bug72688.phpt
329 Bytes
| --TEST-- | |
| Bug #72688 (preg_match missing group names in matches) | |
| --FILE-- | |
| $pattern = []; | |
| for ($i = 0; $i < 300; $i++) { | |
| $pattern[] = "(?'group{$i}'{$i}$)"; | |
| } | |
| $fullPattern = '/' . implode('|', $pattern) . '/uix'; | |
| preg_match($fullPattern, '290', $matches); | |
| var_dump($matches['group290']); | |
| --EXPECT-- | |
| string(3) "290" | |