Download src/php/php-src/ext/pcre/tests/bug53823.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 354 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcre/tests/bug53823.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pcre/tests/bug53823.phpt
-
curl -L -o bug53823.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcre/tests/bug53823.phpt
354 Bytes
| --TEST-- | |
| Bug #53823 - preg_replace: * qualifier on unicode replace garbles the string | |
| --FILE-- | |
| var_dump(preg_replace('/[^\pL\pM]*/iu', '', 'áéíóú')); | |
| // invalid UTF-8 | |
| var_dump(preg_replace('/[^\pL\pM]*/iu', '', "\xFCáéíóú")); | |
| var_dump(preg_replace('/[^\pL\pM]*/iu', '', "áéíóú\xFC")); | |
| --EXPECT-- | |
| string(10) "áéíóú" | |
| NULL | |
| NULL | |