Download src/php/php-src/ext/iconv/tests/bug77147.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 493 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/iconv/tests/bug77147.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/iconv/tests/bug77147.phpt
-
curl -L -o bug77147.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/iconv/tests/bug77147.phpt
493 Bytes
| --TEST-- | |
| Bug #77147 (Fixing 60494 ignored ICONV_MIME_DECODE_CONTINUE_ON_ERROR) | |
| --EXTENSIONS-- | |
| iconv | |
| --FILE-- | |
| $string = <<<EOF | |
| Feedback-ID: 014a93e3-1f5e-4df6-b347-6b59f0f746b8:b5891053-55d1-45bc-a0b5-47a7a9b59687:email:epslh1� | |
| EOF; | |
| $headers = iconv_mime_decode_headers($string, ICONV_MIME_DECODE_CONTINUE_ON_ERROR); | |
| var_dump($headers); | |
| --EXPECT-- | |
| array(1) { | |
| ["Feedback-ID"]=> | |
| string(86) "014a93e3-1f5e-4df6-b347-6b59f0f746b8:b5891053-55d1-45bc-a0b5-47a7a9b59687:email:epslh1" | |
| } | |