Skip to content

Commit faa5425

Browse files
committed
Add regression test for problem with mb_encode_mimeheader reported as GH-9683
1 parent 5812b4f commit faa5425

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ext/mbstring/tests/gh9683.phpt

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--TEST--
2+
GH-9683 (Problem when ISO-2022-JP-MS is specified in mb_ encode_mimeheader)
3+
--EXTENSIONS--
4+
mbstring
5+
--FILE--
6+
<?php
7+
8+
echo mb_decode_mimeheader(mb_encode_mimeheader('1234567890123456789012', 'ISO-2022-JP-MS', 'B'));
9+
?>
10+
--EXPECT--
11+
1234567890123456789012

0 commit comments

Comments
 (0)