Download src/php/php-src/ext/iconv/tests/bug52211.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/iconv/tests/bug52211.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/iconv/tests/bug52211.phpt
-
curl -L -o bug52211.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/iconv/tests/bug52211.phpt
326 Bytes
| --TEST-- | |
| Bug #52211 (iconv() returns part of string on error) | |
| --EXTENSIONS-- | |
| iconv | |
| --FILE-- | |
| $str = "PATHOLOGIES MÉDICO-CHIRUR. ADUL. PL"; | |
| $str_iconv = iconv('CP850', 'ISO-8859-1', $str ); | |
| var_dump($str_iconv); | |
| --EXPECTF-- | |
| Notice: iconv(): Detected an illegal character in input string in %s on line %d | |
| bool(false) | |