Bug #77147 [NEW]: iconv_mime_decode_headers ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR flag

From: Date: Tue, 13 Nov 2018 22:42:40 +0000
Subject: Bug #77147 [NEW]: iconv_mime_decode_headers ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR flag
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217948@lists.php.net to get a copy of this message
From: shafer_w2002 at yahoo dot com Operating system: N/A PHP version: 7.1.24 Package: ICONV related Bug Type: Bug Bug description:iconv_mime_decode_headers ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR flag Description: ------------ The fix for bug https://bugs.php.net/bug.php?id=60494 ignores the ICONV_MIME_DECODE_CONTINUE_ON_ERROR flag and false the parse. Prior to 7.1.22 parsing headers with erogenous characters worked fine, or as good as you were going to get anyway. The previous behavior should be respected (ignoring these broken chars) when ICONV_MIME_DECODE_CONTINUE_ON_ERROR is set, as per the php manual. Test script: --------------- <?php $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); print_r($headers); Expected result: ---------------- Array ( [Feedback-ID] => 014a93e3-1f5e-4df6-b347-6b59f0f746b8:b5891053-55d1-45bc-a0b5-47a7a9b59687:email:epslh1 ) Actual result: -------------- false -- Edit bug report at https://bugs.php.net/bug.php?id=77147&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77147&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77147&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77147&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77147&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77147&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77147&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77147&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77147&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77147&r=support Expected behavior: https://bugs.php.net/fix.php?id=77147&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77147&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77147&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77147&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77147&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77147&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77147&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77147&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77147&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77147&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77147&r=mysqlcfg

« previous php.bugs (#217948) next »