X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php82-pecl-mailparse_3.1.8-1.el8/tests
opt
/
alt
/
tests
/
alt-php82-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: 007.phpt
--TEST-- Check RFC822 Conformance --SKIPIF-- <?php /* vim600: sw=4 ts=4 fdm=marker syn=php */ if (!extension_loaded("mailparse")) @dl("mailparse.so"); if (!extension_loaded("mailparse")) print "skip"; ?> --POST-- --GET-- --FILE-- <?php if (!extension_loaded("mailparse")) @dl("mailparse.so"); $addresses = array( "\":sysmail\"@ Some-Group. Some-Org, Muhammed.(I am the greatest) Ali @(the)Vegas.WBA", "\"strange\":\":sysmail\"@ Some-Group. Some-Org, Muhammed.(I am the greatest) Ali @(the)Vegas.WBA;" ); foreach($addresses as $address) { $parsed = mailparse_rfc822_parse_addresses($address); foreach($parsed as $pair) { print $pair["display"] . "\n"; print $pair["address"] . "\n"; if ($pair["is_group"]) { $sub = mailparse_rfc822_parse_addresses(substr($pair["address"], 1, strlen($pair["address"]) - 2)); foreach($sub as $subpair) { print " " . $subpair["address"] . "\n"; } } } print "...\n"; } ?> --EXPECT-- :sysmail@Some-Group.Some-Org ":sysmail"@Some-Group.Some-Org I am the greatest the Muhammed.Ali@Vegas.WBA ... strange :":sysmail"@Some-Group.Some-Org,Muhammed.Ali@Vegas.WBA; ":sysmail"@Some-Group.Some-Org Muhammed.Ali@Vegas.WBA ...
Upload File
Create Folder