Download src/php/php-src/ext/mbstring/tests/bug40685.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 745 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/mbstring/tests/bug40685.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/mbstring/tests/bug40685.phpt
-
curl -L -o bug40685.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/mbstring/tests/bug40685.phpt
745 Bytes
| --TEST-- | |
| Bug #40685 (mb_decode_numericentity() removes '&' in the string) | |
| --EXTENSIONS-- | |
| mbstring | |
| --FILE-- | |
| $map = array(0, 0x10FFFF, 0, 0xFFFFFF); | |
| var_dump(mb_decode_numericentity('&', $map, 'UTF-8')); | |
| var_dump(mb_decode_numericentity('&&&', $map, 'UTF-8')); | |
| var_dump(mb_decode_numericentity('&#', $map, 'UTF-8')); | |
| var_dump(mb_decode_numericentity('&#x', $map, 'UTF-8')); | |
| var_dump(mb_decode_numericentity('=', $map, 'UTF-8')); | |
| var_dump(mb_decode_numericentity('=', $map, 'UTF-8')); | |
| var_dump(mb_decode_numericentity('=', $map, 'UTF-8')); | |
| var_dump(mb_decode_numericentity('=', $map, 'UTF-8')); | |
| --EXPECT-- | |
| string(1) "&" | |
| string(3) "&&&" | |
| string(2) "&#" | |
| string(3) "&#x" | |
| string(1) "=" | |
| string(1) "=" | |
| string(1) "=" | |
| string(1) "=" | |