0
|
1 --TEST--
|
|
2 Bug #13032 Proper (different) boundary for nested parts
|
|
3 --SKIPIF--
|
|
4 --FILE--
|
|
5 <?php
|
|
6 include "Mail/mime.php";
|
|
7 $mime = new Mail_mime("\r\n");
|
|
8 $mime->setHTMLBody('html');
|
|
9 $mime->setTXTBody('text');
|
|
10 $mime->addAttachment('file.pdf', 'application/pdf', 'file.pdf', false, 'base64', 'inline');
|
|
11 $msg = $mime->getMessage();
|
|
12
|
|
13 if (preg_match_all('/boundary="([^"]+)"/', $msg, $matches)) {
|
|
14 if (count($matches) == 2 && count($matches[1]) == 2 &&
|
|
15 $matches[1][0] != $matches[1][1]) {
|
|
16 print('OK');
|
|
17 }
|
|
18 }
|
|
19 ?>
|
|
20 --EXPECT--
|
|
21 OK
|