0
|
1 --TEST--
|
|
2 Bug #3513 Support of RFC2231 in header fields. (ISO-8859-1)
|
|
3 --SKIPIF--
|
|
4 --FILE--
|
|
5 <?php
|
|
6 require_once('Mail/mime.php');
|
|
7
|
|
8 $test = "Fóóbær.txt";
|
|
9 $Mime = new Mail_Mime();
|
|
10 $Mime->addAttachment('testfile',"text/plain", $test, FALSE, 'base64', 'attachment', 'ISO-8859-1');
|
|
11
|
|
12 $content = $Mime->get();
|
|
13 $content = str_replace("\n", '', $content);
|
|
14
|
|
15 if (preg_match('/filename([^\s]+)/i', $content, $matches)) {
|
|
16 echo $matches[1];
|
|
17 }
|
|
18
|
|
19 --EXPECT--
|
|
20 *=ISO-8859-1''F%F3%F3b%E6r.txt;
|