/opt/alt/php74/usr/share/pear/test/Mail_Mime/tests
--TEST-- Bug GH-19 Test boundary value with different headers()/get() call order --SKIPIF-- --FILE-- <?php include "Mail/mime.php"; // Test get() before headers() $mime = new Mail_mime("\r\n"); $mime->setHTMLBody('html'); $mime->setTXTBody('text'); $body = $mime->get(); $hdrs = $mime->headers(array( 'From' => 'test@domain.tld', 'Subject' => 'Subject', 'To' => 'to@domain.tld' )); preg_match('/boundary="([^"]+)/', $hdrs['Content-Type'], $matches); $boundary = $matches[1]; echo substr_count($body, "--$boundary") . "\n"; // Test headers() before get() $mime = new Mail_mime("\r\n"); $mime->setHTMLBody('html'); $mime->setTXTBody('text'); $hdrs = $mime->headers(array( 'From' => 'test@domain.tld', 'Subject' => 'Subject', 'To' => 'to@domain.tld' )); $body = $mime->get(); preg_match('/boundary="([^"]+)/', $hdrs['Content-Type'], $matches); $boundary = $matches[1]; echo substr_count($body, "--$boundary"); --EXPECT-- 3 3
.
Edit
..
Edit
class-filename.phpt
Edit
content_transfer_encoding.phpt
Edit
encoding_case.phpt
Edit
headers_with_mbstring.phpt
Edit
headers_without_mbstring.phpt
Edit
qp_encoding_test.phpt
Edit
sleep_wakeup_EOL-bug3488-part1.phpt
Edit
sleep_wakeup_EOL-bug3488-part2.phpt
Edit
test_Bug_10596_1.phpt
Edit
test_Bug_10816_1.phpt
Edit
test_Bug_10999_1.phpt
Edit
test_Bug_11381.phpt
Edit
test_Bug_11731.phpt
Edit
test_Bug_12165.phpt
Edit
test_Bug_12385_1.phpt
Edit
test_Bug_12411.phpt
Edit
test_Bug_12466.phpt
Edit
test_Bug_13032.phpt
Edit
test_Bug_13444.phpt
Edit
test_Bug_13962.phpt
Edit
test_Bug_14529.phpt
Edit
test_Bug_14779.phpt
Edit
test_Bug_14780.phpt
Edit
test_Bug_15320.phpt
Edit
test_Bug_16539.phpt
Edit
test_Bug_17025.phpt
Edit
test_Bug_17175.phpt
Edit
test_Bug_18083.phpt
Edit
test_Bug_18772.phpt
Edit
test_Bug_19497.phpt
Edit
test_Bug_20226.phpt
Edit
test_Bug_20273.phpt
Edit
test_Bug_20563.phpt
Edit
test_Bug_20564.phpt
Edit
test_Bug_21027.phpt
Edit
test_Bug_21098.phpt
Edit
test_Bug_21205.phpt
Edit
test_Bug_21206.phpt
Edit
test_Bug_21255.phpt
Edit
test_Bug_3513_1.phpt
Edit
test_Bug_3513_2.phpt
Edit
test_Bug_3513_3.phpt
Edit
test_Bug_7561_1.phpt
Edit
test_Bug_8386_1.phpt
Edit
test_Bug_8541_1.phpt
Edit
test_Bug_9722_1.phpt
Edit
test_Bug_GH16.phpt
Edit
test_Bug_GH19.phpt
Edit
test_Bug_GH26.phpt
Edit
test_linebreak_dot.phpt
Edit
test_linebreak_larger_76.phpt
Edit