2 Bug #14529 basename() workaround
6 include "Mail/mime.php";
8 $Mime = new Mail_mime();
9 // some text with polish Unicode letter at the beginning
10 $filename = base64_decode("xZtjaWVtYQ==");
11 $Mime->addAttachment('testfile', "text/plain", $filename, FALSE, 'base64', 'attachment', 'ISO-8859-1');
13 $content = $Mime->get();
14 $content = str_replace("\n", '', $content);
16 if (preg_match('/filename([^\s]+)/i', $content, $matches)) {
21 *=ISO-8859-1''%C5%9Bciema;