MR~TNT File Manager
Current Path:
/opt/alt/tests/alt-php84-pecl-mailparse_3.1.8-1.el8/tests
opt
/
alt
/
tests
/
alt-php84-pecl-mailparse_3.1.8-1.el8
/
tests
/
ðŸ“
..
📄
001.phpt
(328 B)
📄
002.phpt
(571 B)
📄
003.phpt
(597 B)
📄
004.phpt
(765 B)
📄
005.phpt
(948 B)
📄
006.phpt
(2.26 KB)
📄
007.phpt
(1.15 KB)
📄
008.phpt
(354 B)
📄
009.phpt
(896 B)
📄
010.phpt
(1.27 KB)
📄
011.phpt
(678 B)
📄
012-stream.phpt
(476 B)
📄
012-var.phpt
(465 B)
📄
012.phpt
(435 B)
📄
013.phpt
(354 B)
📄
bug001.phpt
(685 B)
📄
bug73110.phpt
(909 B)
📄
bug74223.phpt
(705 B)
📄
bug75825.phpt
(2.1 KB)
📄
bug81403.phpt
(542 B)
📄
bug81422.phpt
(424 B)
📄
gh19.phpt
(935 B)
📄
gh21.phpt
(1.6 KB)
📄
gh22.phpt
(1.76 KB)
📄
gh24.phpt
(710 B)
📄
gh29.phpt
(598 B)
📄
gh30.phpt
(837 B)
📄
parse_test_messages.phpt
(4.66 KB)
ðŸ“
testdata
Editing: 010.phpt
--TEST-- Multiple headers not parsed into arra bug #6862 --SKIPIF-- <?php /* vim600: sw=4 ts=4 fdm=marker syn=php */ if (!extension_loaded("mailparse")) print "skip"; ?> --FILE-- <?php $msg = <<<EOD Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 18 Feb 2006 22:58:14 -0800 Received: from 66.178.40.49 by BAY116-DAV8.phx.gbl with DAV; Sun, 19 Feb 2006 06:58:13 +0000 test EOD; $mail = mailparse_msg_create(); mailparse_msg_parse($mail,$msg); $struct = mailparse_msg_get_structure($mail); foreach($struct as $st) { $section = mailparse_msg_get_part($mail, $st); $info = mailparse_msg_get_part_data($section); var_dump($info); } ?> --EXPECT-- array(11) { ["headers"]=> array(1) { ["received"]=> array(2) { [0]=> string(54) "from mail pickup service by hotmail.com with Microsoft" [1]=> string(50) "from 66.178.40.49 by BAY116-DAV8.phx.gbl with DAV;" } } ["starting-pos"]=> int(0) ["starting-pos-body"]=> int(200) ["ending-pos"]=> int(200) ["ending-pos-body"]=> int(200) ["line-count"]=> int(6) ["body-line-count"]=> int(0) ["charset"]=> string(8) "us-ascii" ["transfer-encoding"]=> string(4) "8bit" ["content-type"]=> string(10) "text/plain" ["content-base"]=> string(1) "/" }
Upload File
Create Folder