annotate vendor/pear/mail_mime/tests/test_Bug_20226.phpt @ 35:05c4c32948af
.hgignore: add vendor tree
composer.json: new packages
plugins/thunderbird_labels/thunderbird_labels.php: change hook and RFC822 use wrt whitelisting to avoid deprecated stuff
index.php: commented debugging hooks
others: new releases of vendor packages?
| author |
Charlie Root |
| date |
Thu, 30 Aug 2018 16:21:59 -0400 |
| parents |
1e000243b222 |
| children |
|
| rev |
line source |
|
0
|
1 --TEST--
|
|
|
2 Bug #20226 Mail_mimePart::encodeHeader() and ISO-2022-JP encoding
|
|
|
3 --SKIPIF--
|
|
|
4 --FILE--
|
|
|
5 <?php
|
|
|
6 include("Mail/mimePart.php");
|
|
|
7
|
|
|
8 $subject = base64_decode("GyRCJT8lJCVIJWsbKEI=");
|
|
|
9 $mime = new Mail_mimePart();
|
|
|
10
|
|
|
11 echo $mime->encodeHeader('subject', $subject, 'ISO-2022-JP', 'base64');
|
|
|
12 ?>
|
|
|
13 --EXPECT--
|
|
|
14 =?ISO-2022-JP?B?GyRCJT8lJCVIJWsbKEI=?=
|