Current Path: > > opt > cloudlinux > alt-php82 > root > usr > share > > pear > > test > Mail_Mime > tests
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
class-filename.phpt | File | 242 bytes | April 06 2023 15:34:24. | |
content_transfer_encoding.phpt | File | 924 bytes | April 06 2023 15:34:24. | |
encoding_case.phpt | File | 244 bytes | April 06 2023 15:34:24. | |
headers_with_mbstring.phpt | File | 8855 bytes | April 06 2023 15:34:24. | |
headers_without_mbstring.phpt | File | 8517 bytes | April 06 2023 15:34:24. | |
qp_encoding_test.phpt | File | 3557 bytes | April 06 2023 15:34:24. | |
sleep_wakeup_EOL-bug3488-part1.phpt | File | 545 bytes | April 06 2023 15:34:24. | |
sleep_wakeup_EOL-bug3488-part2.phpt | File | 586 bytes | April 06 2023 15:34:24. | |
test_Bug_10596_1.phpt | File | 296 bytes | April 06 2023 15:34:24. | |
test_Bug_10816_1.phpt | File | 570 bytes | April 06 2023 15:34:24. | |
test_Bug_10999_1.phpt | File | 491 bytes | April 06 2023 15:34:24. | |
test_Bug_11381.phpt | File | 557 bytes | April 06 2023 15:34:24. | |
test_Bug_11731.phpt | File | 684 bytes | April 06 2023 15:34:24. | |
test_Bug_12165.phpt | File | 381 bytes | April 06 2023 15:34:24. | |
test_Bug_12385_1.phpt | File | 539 bytes | April 06 2023 15:34:24. | |
test_Bug_12411.phpt | File | 649 bytes | April 06 2023 15:34:24. | |
test_Bug_12466.phpt | File | 445 bytes | April 06 2023 15:34:24. | |
test_Bug_13032.phpt | File | 539 bytes | April 06 2023 15:34:24. | |
test_Bug_13444.phpt | File | 670 bytes | April 06 2023 15:34:24. | |
test_Bug_13962.phpt | File | 367 bytes | April 06 2023 15:34:24. | |
test_Bug_14529.phpt | File | 521 bytes | April 06 2023 15:34:24. | |
test_Bug_14779.phpt | File | 489 bytes | April 06 2023 15:34:24. | |
test_Bug_14780.phpt | File | 351 bytes | April 06 2023 15:34:24. | |
test_Bug_15320.phpt | File | 462 bytes | April 06 2023 15:34:24. | |
test_Bug_16539.phpt | File | 7513 bytes | April 06 2023 15:34:24. | |
test_Bug_17025.phpt | File | 412 bytes | April 06 2023 15:34:24. | |
test_Bug_17175.phpt | File | 695 bytes | April 06 2023 15:34:24. | |
test_Bug_18083.phpt | File | 592 bytes | April 06 2023 15:34:24. | |
test_Bug_18772.phpt | File | 880 bytes | April 06 2023 15:34:24. | |
test_Bug_19497.phpt | File | 547 bytes | April 06 2023 15:34:24. | |
test_Bug_20226.phpt | File | 341 bytes | April 06 2023 15:34:24. | |
test_Bug_20273.phpt | File | 302 bytes | April 06 2023 15:34:24. | |
test_Bug_20563.phpt | File | 378 bytes | April 06 2023 15:34:24. | |
test_Bug_20564.phpt | File | 270 bytes | April 06 2023 15:34:24. | |
test_Bug_21027.phpt | File | 7295 bytes | April 06 2023 15:34:24. | |
test_Bug_21098.phpt | File | 390 bytes | April 06 2023 15:34:24. | |
test_Bug_21205.phpt | File | 1310 bytes | April 06 2023 15:34:24. | |
test_Bug_21206.phpt | File | 590 bytes | April 06 2023 15:34:24. | |
test_Bug_21255.phpt | File | 352 bytes | April 06 2023 15:34:24. | |
test_Bug_3513_1.phpt | File | 475 bytes | April 06 2023 15:34:24. | |
test_Bug_3513_2.phpt | File | 567 bytes | April 06 2023 15:34:24. | |
test_Bug_3513_3.phpt | File | 631 bytes | April 06 2023 15:34:24. | |
test_Bug_7561_1.phpt | File | 645 bytes | April 06 2023 15:34:24. | |
test_Bug_8386_1.phpt | File | 551 bytes | April 06 2023 15:34:24. | |
test_Bug_8541_1.phpt | File | 499 bytes | April 06 2023 15:34:24. | |
test_Bug_9722_1.phpt | File | 360 bytes | April 06 2023 15:34:24. | |
test_Bug_GH16.phpt | File | 1602 bytes | April 06 2023 15:34:24. | |
test_Bug_GH19.phpt | File | 997 bytes | April 06 2023 15:34:24. | |
test_Bug_GH26.phpt | File | 755 bytes | April 06 2023 15:34:24. | |
test_linebreak_dot.phpt | File | 1688 bytes | April 06 2023 15:34:24. | |
test_linebreak_larger_76.phpt | File | 2307 bytes | April 06 2023 15:34:24. |
--TEST-- Bug #21027 Calendar support along with attachments and html images --SKIPIF-- --FILE-- <?php require_once('Mail/mime.php'); $txtBody = 'Hi, this is Plain Text Body.'; $htmlBody = '<div>This is HTML body.</div>'; $icsText = 'BEGIN:VCALENDAR VERSION:2.0 PRODID:-//icalcreator//NONSGML iCalcreator 2.22// METHOD:REQUEST BEGIN:VEVENT UID:77@localhost DTSTAMP:20160208T170811Z ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Jacob Alvarez:MAILTO:fake1@mailinator.com CREATED:20160208T170810Z DTSTART:20160215T180000Z DTEND:20160215T190000Z ORGANIZER;CN=-:MAILTO:fake2@mailinator.com SEQUENCE:1 STATUS:CONFIRMED SUMMARY:Prueba 69 TRANSP:OPAQUE URL:http://localhost/event/77 END:VEVENT END:VCALENDAR'; function printPartsStartAndEnd($body) { $matches = array(); preg_match_all('/--(=_[a-z0-9]+)--|Content-Type: ([^;\r\n]+)/', $body, $matches); $tab = " "; foreach ($matches[0] as $match){ if (strpos($match, '--') === false) { printf("%s%s\n", $tab, $match); if (stripos($match, "multipart")) { $tab .= " "; } } else { $tab = substr($tab, 0, -4); printf("%sEnd part\n", $tab); } } } function printHeaderContentType($headers) { $headerContentType = array(); preg_match('/([^;\r\n]+)/', $headers['Content-Type'], $headerContentType); printf("Content-Type: %s\n", $headerContentType[0]); } print "TEST: text\n"; $mime = new Mail_mime(); $mime->setTXTBody($txtBody); $headers = $mime->headers(); $body = $mime->get(); printHeaderContentType($headers); printPartsStartAndEnd($body); print("\n"); print "TEST: html\n"; $mime = new Mail_mime(); $mime->setHTMLBody($htmlBody); $headers = $mime->headers(); $body = $mime->get(); printHeaderContentType($headers); printPartsStartAndEnd($body); print("\n"); print "TEST: attachments\n"; $mime = new Mail_mime(); $mime->addAttachment($icsText, 'application/ics', 'invite.ics', false); $headers = $mime->headers(); $body = $mime->get(); printHeaderContentType($headers); printPartsStartAndEnd($body); print("\n"); print "TEST: text + attachments\n"; $mime = new Mail_mime(); $mime->setTXTBody($txtBody); $mime->addAttachment($icsText, 'application/ics', 'invite.ics', false); $headers = $mime->headers(); $body = $mime->get(); printHeaderContentType($headers); printPartsStartAndEnd($body); print("\n"); print "TEST: html + attachments\n"; $mime = new Mail_mime(); $mime->setHTMLBody($htmlBody); $mime->addAttachment($icsText, 'application/ics', 'invite.ics', false); $headers = $mime->headers(); $body = $mime->get(); printHeaderContentType($headers); printPartsStartAndEnd($body); print("\n"); print "TEST: html + inline images\n"; $mime = new Mail_mime(); $mime->setHTMLBody($htmlBody); $mime->addHTMLImage("aaaaaaaaaa", 'image/gif', 'image.gif', false, 'contentid'); $headers = $mime->headers(); $body = $mime->get(); printHeaderContentType($headers); printPartsStartAndEnd($body); print("\n"); print("TEST: txt, html and attachment\n"); $mime = new Mail_mime(); $mime->setTXTBody($txtBody); $mime->setHTMLBody($htmlBody); $mime->addAttachment("test", 'application/octet-stream', 'attachment', false); $headers = $mime->headers(); $body = $mime->get(); printHeaderContentType($headers); printPartsStartAndEnd($body); print("\n"); print "TEST: calendar\n"; $mime = new Mail_mime(); $mime->setCalendarBody($icsText); $headers = $mime->headers(); $body = $mime->get(); printHeaderContentType($headers); printPartsStartAndEnd($body); print("\n"); print "TEST: txt + calendar\n"; $mime->setTXTBody($txtBody); $headers = $mime->headers(); $body = $mime->get(); printHeaderContentType($headers); printPartsStartAndEnd($body); print("\n"); print "TEST: txt, html, calendar\n"; $mime = new Mail_mime(); $mime->setTXTBody($txtBody); $mime->setHTMLBody($htmlBody); $mime->setCalendarBody($icsText); $headers = $mime->headers(); $body = $mime->get(); printHeaderContentType($headers); printPartsStartAndEnd($body); print("\n"); print "TEST: txt, html + html images, and calendar\n"; $mime = new Mail_mime(); $mime->setTXTBody($txtBody); $mime->setHTMLBody($htmlBody); $mime->addHTMLImage('testimage', 'image/gif', "bus.gif", false); $mime->setCalendarBody($icsText); $headers = $mime->headers(); $body = $mime->get(); printHeaderContentType($headers); printPartsStartAndEnd($body); print("\n"); print("TEST: txt, html, calendar and attachment\n"); $mime = new Mail_mime(); $mime->setTXTBody($txtBody); $mime->setHTMLBody($htmlBody); $mime->setCalendarBody($icsText); $mime->addAttachment("test", 'application/octet-stream', 'attachment', false); $headers = $mime->headers(); $body = $mime->get(); printHeaderContentType($headers); printPartsStartAndEnd($body); print("\n"); print "TEST: txt, html + html images, calendar, and attachment\n"; $mime = new Mail_mime(); $mime->setTXTBody($txtBody); $mime->setHTMLBody($htmlBody); $mime->addHTMLImage('testimage', 'image/gif', "bus.gif", false); $mime->setCalendarBody($icsText); $mime->addAttachment($icsText, 'application/ics', 'invite.ics', false); $headers = $mime->headers(); $body = $mime->get(); printHeaderContentType($headers); printPartsStartAndEnd($body); print("\n"); ?> --EXPECT-- TEST: text Content-Type: text/plain TEST: html Content-Type: text/html TEST: attachments Content-Type: multipart/mixed Content-Type: application/ics End part TEST: text + attachments Content-Type: multipart/mixed Content-Type: text/plain Content-Type: application/ics End part TEST: html + attachments Content-Type: multipart/mixed Content-Type: text/html Content-Type: application/ics End part TEST: html + inline images Content-Type: multipart/related Content-Type: text/html Content-Type: image/gif End part TEST: txt, html and attachment Content-Type: multipart/mixed Content-Type: multipart/alternative Content-Type: text/plain Content-Type: text/html End part Content-Type: application/octet-stream End part TEST: calendar Content-Type: text/calendar TEST: txt + calendar Content-Type: multipart/alternative Content-Type: text/plain Content-Type: text/calendar End part TEST: txt, html, calendar Content-Type: multipart/alternative Content-Type: text/plain Content-Type: text/html Content-Type: text/calendar End part TEST: txt, html + html images, and calendar Content-Type: multipart/alternative Content-Type: text/plain Content-Type: multipart/related Content-Type: text/html Content-Type: image/gif End part Content-Type: text/calendar End part TEST: txt, html, calendar and attachment Content-Type: multipart/mixed Content-Type: multipart/alternative Content-Type: text/plain Content-Type: text/html Content-Type: text/calendar End part Content-Type: application/octet-stream End part TEST: txt, html + html images, calendar, and attachment Content-Type: multipart/mixed Content-Type: multipart/alternative Content-Type: text/plain Content-Type: multipart/related Content-Type: text/html Content-Type: image/gif End part Content-Type: text/calendar End part Content-Type: application/ics End part
SILENT KILLER Tool