-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem when ISO-2022-JP-MS is specified in mb_encode_mimeheader #9683
Comments
Indeed, there is something wrong in PHP 8.1: https://3v4l.org/ucPUC |
cmb69
added
Extension: mbstring
Status: Verified
and removed
Status: Needs Triage
labels
Oct 7, 2022
I am also adding a regression test for this. |
alexdowad
added a commit
that referenced
this issue
Oct 10, 2022
alexdowad
added a commit
that referenced
this issue
Oct 10, 2022
* PHP-8.1: Add regression test for problem with mb_encode_mimeheader reported as GH-9683 In legacy text conversion filters, reset filter state in 'flush' function
alexdowad
added a commit
that referenced
this issue
Oct 10, 2022
* PHP-8.2: Add regression test for problem with mb_encode_mimeheader reported as GH-9683 In legacy text conversion filters, reset filter state in 'flush' function
Thanks again! This fix will be included in the next release of PHP 8.1. |
nanasess
changed the title
Problem when ISO-2022-JP-MS is specified in mb_ encode_mimeheader
Problem when ISO-2022-JP-MS is specified in mb_encode_mimeheader
Oct 10, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
PHP8.0.x or earlier will decode correctly, but PHP8.1.x will output undecoded strings.
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
PHP 8.1.6
Operating System
Ubuntu 20.04
The text was updated successfully, but these errors were encountered: