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