Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
Bug #18083  Separate charset for attachment's content and headers
3
--SKIPIF--
4
--FILE--
5
<?php
6
error_reporting(E_ALL); // ignore E_STRICT
7
include "Mail/mime.php";
8
$m = new Mail_mime();
9
 
10
$m->addAttachment('testfile', "text/plain",
11
    base64_decode("xZtjaWVtYQ=="), FALSE,
12
    'base64', 'attachment', 'ISO-8859-1', 'pl', '',
13
    'quoted-printable', 'base64', '', 'UTF-8');
14
 
15
$root = $m->_addMixedPart();
16
$enc = $m->_addAttachmentPart($root, $m->_parts[0]);
17
 
18
echo $enc->_headers['Content-Type'];
19
echo "\n";
20
echo $enc->_headers['Content-Disposition'];
21
?>
22
--EXPECT--
23
text/plain; charset=ISO-8859-1;
24
 name="=?UTF-8?Q?=C5=9Bciema?="
25
attachment;
26
 filename="=?UTF-8?B?xZtjaWVtYQ==?="