Mercurial > hg > rc1
comparison vendor/pear/mail_mime/tests/test_Bug_7561_1.phpt @ 0:1e000243b222
vanilla 1.3.3 distro, I hope
author | Charlie Root |
---|---|
date | Thu, 04 Jan 2018 15:50:29 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1e000243b222 |
---|---|
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 |