Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
Bug #9725   multipart/related & alternative wrong order
3
--SKIPIF--
4
--FILE--
5
<?php
6
error_reporting(E_ALL); // ignore E_STRICT
7
include("Mail/mime.php");
8
 
9
$mime = new Mail_mime();
10
$mime->setTXTBody("test");
11
$mime->setHTMLBody("test");
12
$mime->addHTMLImage("test", 'application/octet-stream', '', false);
13
$body = $mime->get();
14
$head = $mime->headers();
15
$headCT = $head['Content-Type'];
16
$headCT = explode(";", $headCT);
17
$headCT = $headCT[0];
18
 
19
$ct = preg_match_all('|Content-Type: ([^;\r\n]+)|', $body, $matches);
20
print($headCT);
21
print("\n");
22
foreach ($matches[1] as $match){
23
    print($match);
24
    print("\n");
25
}
26
--EXPECT--
27
multipart/alternative
28
text/plain
29
multipart/related
30
text/html
31
application/octet-stream