| 1 |
lars |
1 |
--TEST--
|
|
|
2 |
Bug #3513 Support of RFC2231 in header fields. (ISO-2022-JP)
|
|
|
3 |
--SKIPIF--
|
|
|
4 |
--FILE--
|
|
|
5 |
<?php
|
|
|
6 |
error_reporting(E_ALL);
|
|
|
7 |
mb_internal_encoding('ISO-2022-JP');
|
|
|
8 |
$testEncoded="GyRCRnxLXDhsGyhCLnR4dA==";
|
|
|
9 |
$test = base64_decode($testEncoded); // Japanese filename in ISO-2022-JP charset.
|
|
|
10 |
require_once('Mail/mime.php');
|
|
|
11 |
$Mime=new Mail_Mime();
|
|
|
12 |
$Mime->addAttachment('testfile',"text/plain", $test, FALSE, 'base64', 'attachment', 'iso-2022-jp', '');
|
|
|
13 |
$root = $Mime->_addMixedPart();
|
|
|
14 |
$enc = $Mime->_addAttachmentPart($root, $Mime->_parts[0]);
|
|
|
15 |
print($enc->_headers['Content-Disposition']);
|
|
|
16 |
?>
|
|
|
17 |
--EXPECT--
|
|
|
18 |
attachment;
|
|
|
19 |
filename*=iso-2022-jp''%1B$BF|K%5C8l%1B%28B.txt
|