xref: /PHP-8.1/ext/iconv/tests/bug77147.phpt (revision e9f783fc)
1--TEST--
2Bug #77147 (Fixing 60494 ignored ICONV_MIME_DECODE_CONTINUE_ON_ERROR)
3--EXTENSIONS--
4iconv
5--FILE--
6<?php
7$string = <<<EOF
8Feedback-ID: 014a93e3-1f5e-4df6-b347-6b59f0f746b8:b5891053-55d1-45bc-a0b5-47a7a9b59687:email:epslh1�
9EOF;
10$headers = iconv_mime_decode_headers($string, ICONV_MIME_DECODE_CONTINUE_ON_ERROR);
11var_dump($headers);
12?>
13--EXPECT--
14array(1) {
15  ["Feedback-ID"]=>
16  string(86) "014a93e3-1f5e-4df6-b347-6b59f0f746b8:b5891053-55d1-45bc-a0b5-47a7a9b59687:email:epslh1"
17}
18