Download src/php/php-src/ext/pcre/tests/bug42737.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 282 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcre/tests/bug42737.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pcre/tests/bug42737.phpt
-
curl -L -o bug42737.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcre/tests/bug42737.phpt
282 Bytes
| --TEST-- | |
| Bug #42737 (preg_split('//u') triggers a E_NOTICE with newlines) | |
| --FILE-- | |
| $string = chr(13).chr(10); | |
| $array = preg_split('//u', $string, - 1, PREG_SPLIT_NO_EMPTY); | |
| var_dump(array_map('ord', $array)); | |
| --EXPECT-- | |
| array(2) { | |
| [0]=> | |
| int(13) | |
| [1]=> | |
| int(10) | |
| } | |