|
0
|
1 --TEST--
|
|
|
2 Bug #7561 Mail_mimePart::quotedPrintableEncode() misbehavior with mbstring overload
|
|
|
3 --INI--
|
|
|
4 mbstring.language=Neutral
|
|
|
5 mbstring.func_overload=6
|
|
|
6 mbstring.internal_encoding=UTF-8
|
|
|
7 mbstring.http_output=UTF-8
|
|
|
8 --SKIPIF--
|
|
|
9 <?php
|
|
|
10 include "PEAR.php";
|
|
|
11 if (!extension_loaded('mbstring')){
|
|
|
12 if (!PEAR::loadExtension('mbstring')){
|
|
|
13 print('SKIP could not load mbstring module');
|
|
|
14 }
|
|
|
15 }
|
|
|
16 --FILE--
|
|
|
17 <?php
|
|
|
18 include("Mail/mimePart.php");
|
|
|
19 // string is UTF-8 encoded
|
|
|
20 $input = "Micha\xC3\xABl \xC3\x89ric St\xC3\xA9phane";
|
|
|
21 $rv = Mail_mimePart::quotedPrintableEncode($input, 76, "\n");
|
|
|
22 echo $rv, "\n";
|
|
|
23 --EXPECT--
|
|
|
24 Micha=C3=ABl =C3=89ric St=C3=A9phane
|