Download src/php/php-src/ext/pcre/tests/bug61780.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 302 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcre/tests/bug61780.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pcre/tests/bug61780.phpt
-
curl -L -o bug61780.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcre/tests/bug61780.phpt
302 Bytes
| --TEST-- | |
| Bug #61780 (Inconsistent PCRE captures in match results): basics | |
| --FILE-- | |
| preg_match('/(a)?([a-z]*)(\d*)/', '123', $matches, PREG_UNMATCHED_AS_NULL); | |
| var_dump($matches); | |
| --EXPECT-- | |
| array(4) { | |
| [0]=> | |
| string(3) "123" | |
| [1]=> | |
| NULL | |
| [2]=> | |
| string(0) "" | |
| [3]=> | |
| string(3) "123" | |
| } | |