Download src/php/php-src/ext/pcre/tests/bug47662.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 268 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcre/tests/bug47662.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pcre/tests/bug47662.phpt
-
curl -L -o bug47662.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcre/tests/bug47662.phpt
268 Bytes
| --TEST-- | |
| Bug #47662 (support more than 127 named subpatterns) | |
| --FILE-- | |
| $regex = '@'; | |
| for($bar=0; $bar<129; $bar++) { | |
| $regex .= '((?P<x'.$bar.'>))'; | |
| } | |
| $regex .= 'fo+bar@'; | |
| var_dump(preg_match($regex, 'foobar')); | |
| echo "Done!\n"; | |
| --EXPECT-- | |
| int(1) | |
| Done! | |