0
|
1 --TEST--
|
|
2 Bug #15320 Charset parameter in Content-Type of mail parts
|
|
3 --SKIPIF--
|
|
4 --FILE--
|
|
5 <?php
|
|
6 include "Mail/mime.php";
|
|
7
|
|
8 $Mime = new Mail_mime();
|
|
9 $Mime->addAttachment('testfile', "text/plain", 'file.txt', FALSE, 'base64', 'attachment', 'ISO-8859-1');
|
|
10
|
|
11 $content = $Mime->get();
|
|
12 //$content = str_replace("\n", '', $content);
|
|
13
|
|
14 if (preg_match('/Content-type:([^\n]+)/i', $content, $matches)) {
|
|
15 echo $matches[1];
|
|
16 }
|
|
17
|
|
18 ?>
|
|
19 --EXPECT--
|
|
20 text/plain; charset=ISO-8859-1;
|
|
21
|