Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
Bug #14529  basename() workaround
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
// some text with polish Unicode letter at the beginning
10
$path = "/path/";
11
$filename = $path . base64_decode("xZtjaWVtYQ==");
12
$m->addAttachment('testfile', "text/plain", $filename, FALSE, 'base64', 'attachment', 'ISO-8859-1');
13
$root = $m->_addMixedPart();
14
$enc = $m->_addAttachmentPart($root, $m->_parts[0]);
15
print_r($enc->_headers['Content-Disposition']);
16
?>
17
--EXPECT--
18
attachment;
19
 filename*=ISO-8859-1''%C5%9Bciema