[php-src] Issue #9683: Problem when ISO-2022-JP-MS is specified in mb_ encode_mimeheader

From: Date: Thu, 06 Oct 2022 16:48:38 +0000
Subject: [php-src] Issue #9683: Problem when ISO-2022-JP-MS is specified in mb_ encode_mimeheader
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-242538@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/9683 Author: nanasess ### Description PHP8.0.x or earlier will decode correctly, but PHP8.1.x will output undecoded strings. The following code: ```php <?php echo mb_decode_mimeheader(mb_encode_mimeheader('1234567890123456789012', 'ISO-2022-JP-MS', 'B')); ``` Resulted in this output: ``` 123456789012345678#9#0#1#2 ``` But I expected this output instead: ``` 1234567890123456789012 ``` ### PHP Version PHP 8.1.6 ### Operating System Ubuntu 20.04

« previous php.bugs (#242538) next »