Submit
Path:
~
/
/
opt
/
alt
/
php54
/
usr
/
share
/
pear
/
test
/
Mail_Mime
/
tests
/
File Content:
headers_with_mbstring.phpt
--TEST-- Multi-test for headers encoding using base64 and quoted-printable --SKIPIF-- <?php if (!function_exists('mb_substr') || !function_exists('mb_strlen')) { die "skip mbstring functions not found!"; } ?> --FILE-- <?php include("Mail/mime.php"); $mime = new Mail_mime(); $headers = array( array('From', '<adresse@adresse.de>'), array('From', 'adresse@adresse.de'), array('From', 'Frank Do <adresse@adresse.de>'), array('To', 'Frank Do <adresse@adresse.de>, James Clark <james@domain.com>'), array('From', '"Frank Do" <adresse@adresse.de>'), array('Cc', '"Frank Do" <adresse@adresse.de>, "James Clark" <james@domain.com>'), array('Cc', ' <adresse@adresse.de>, "Kuśmiderski Jan Krzysztof Janusz Długa nazwa" <cris@domain.com>'), array('From', '"adresse@adresse.de" <addresse@adresse>'), array('From', 'adresse@adresse.de <addresse@adresse>'), array('From', '"German Umlauts öäü" <adresse@adresse.de>'), array('Subject', 'German Umlauts öäü <adresse@adresse.de>'), array('Subject', 'Short ASCII subject'), array('Subject', 'Long ASCII subject - multiline space separated words - too long for one line'), array('Subject', 'Short Unicode ż subject'), array('Subject', 'Long Unicode subject - zażółć gęślą jaźń - too long for one line'), array('References', '<hglvja$jg7$1@nemesis.news.neostrada.pl> <4b2e87ac$1@news.home.net.pl> <hgm5b1$3a7$1@atlantis.news.neostrada.pl>'), array('To', '"Frank Do" <adresse@adresse.de>,, "James Clark" <james@domain.com>'), array('To', '"Frank \\" \\\\Do" <adresse@adresse.de>'), array('To', 'Frank " \\Do <adresse@adresse.de>'), array('Subject', "A REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY /REALLY/ LONG test"), array('Subject', "TEST Süper gröse tolle grüße von mir Süper gröse tolle grüße von mir Süper gröse tolle grüße von mir Süper gröse tolle grüße von mir Süper gröse tolle grüße von mir Süper gröse tolle grüße von mir Süper gröse tolle grüße von mir Süper gröse tolle grüße von mir Süper gröse tolle grüße von mir!!!?"), array('Subject', "Update: Microsoft Windows-Tool zum Entfernen bösartiger Software 3.6"), array('From', "test@nàme <user@domain.com>"), array('From', "Test <\"test test\"@domain.com>"), array('From', "\"test test\"@domain.com"), array('From', "<\"test test\"@domain.com>"), array('From', "Doe<test@domain.com>"), array('From', "\"John Doe\"<test@domain.com>"), array('Mail-Reply-To', 'adresse@adresse.de <addresse@adresse>'), array('Mail-Reply-To', '"öäü" <adresse@adresse.de>'), array('Subject', mb_convert_encoding('㈱山﨑工業', 'ISO-2022-JP-MS', 'UTF-8'), 'ISO-2022-JP'), ); $i = 1; foreach ($headers as $header) { $charset = isset($header[2]) ? $header[2] : 'UTF-8'; $hdr = $mime->encodeHeader($header[0], $header[1], $charset, 'base64'); printf("[%02d] %s: %s\n", $i, $header[0], $hdr); $hdr = $mime->encodeHeader($header[0], $header[1], $charset, 'quoted-printable'); printf("[%02d] %s: %s\n", $i, $header[0], $hdr); $i++; } ?> --EXPECT-- [01] From: <adresse@adresse.de> [01] From: <adresse@adresse.de> [02] From: adresse@adresse.de [02] From: adresse@adresse.de [03] From: Frank Do <adresse@adresse.de> [03] From: Frank Do <adresse@adresse.de> [04] To: Frank Do <adresse@adresse.de>, James Clark <james@domain.com> [04] To: Frank Do <adresse@adresse.de>, James Clark <james@domain.com> [05] From: "Frank Do" <adresse@adresse.de> [05] From: "Frank Do" <adresse@adresse.de> [06] Cc: "Frank Do" <adresse@adresse.de>, "James Clark" <james@domain.com> [06] Cc: "Frank Do" <adresse@adresse.de>, "James Clark" <james@domain.com> [07] Cc: <adresse@adresse.de>, =?UTF-8?B?S3XFm21pZGVyc2tpIEphbiBLcnp5c3p0b2Yg?= =?UTF-8?B?SmFudXN6IETFgnVnYSBuYXp3YQ==?= <cris@domain.com> [07] Cc: <adresse@adresse.de>, =?UTF-8?Q?Ku=C5=9Bmiderski_Jan_Krzysztof_Janusz?= =?UTF-8?Q?_D=C5=82uga_nazwa?= <cris@domain.com> [08] From: "adresse@adresse.de" <addresse@adresse> [08] From: "adresse@adresse.de" <addresse@adresse> [09] From: "adresse@adresse.de" <addresse@adresse> [09] From: "adresse@adresse.de" <addresse@adresse> [10] From: =?UTF-8?B?R2VybWFuIFVtbGF1dHMgw7bDpMO8?= <adresse@adresse.de> [10] From: =?UTF-8?Q?German_Umlauts_=C3=B6=C3=A4=C3=BC?= <adresse@adresse.de> [11] Subject: =?UTF-8?B?R2VybWFuIFVtbGF1dHMgw7bDpMO8IDxhZHJlc3NlQGFkcmVzc2Uu?= =?UTF-8?B?ZGU+?= [11] Subject: =?UTF-8?Q?German_Umlauts_=C3=B6=C3=A4=C3=BC_=3Cadresse=40adresse?= =?UTF-8?Q?=2Ede=3E?= [12] Subject: Short ASCII subject [12] Subject: Short ASCII subject [13] Subject: Long ASCII subject - multiline space separated words - too long for one line [13] Subject: Long ASCII subject - multiline space separated words - too long for one line [14] Subject: =?UTF-8?B?U2hvcnQgVW5pY29kZSDFvCBzdWJqZWN0?= [14] Subject: =?UTF-8?Q?Short_Unicode_=C5=BC_subject?= [15] Subject: =?UTF-8?B?TG9uZyBVbmljb2RlIHN1YmplY3QgLSB6YcW8w7PFgsSHIGfEmcWb?= =?UTF-8?B?bMSFIGphxbrFhCAtIHRvbyBsb25nIGZvciBvbmUgbGluZQ==?= [15] Subject: =?UTF-8?Q?Long_Unicode_subject_-_za=C5=BC=C3=B3=C5=82=C4=87_g?= =?UTF-8?Q?=C4=99=C5=9Bl=C4=85_ja=C5=BA=C5=84_-_too_long_for_one_line?= [16] References: <hglvja$jg7$1@nemesis.news.neostrada.pl> <4b2e87ac$1@news.home.net.pl> <hgm5b1$3a7$1@atlantis.news.neostrada.pl> [16] References: <hglvja$jg7$1@nemesis.news.neostrada.pl> <4b2e87ac$1@news.home.net.pl> <hgm5b1$3a7$1@atlantis.news.neostrada.pl> [17] To: "Frank Do" <adresse@adresse.de>, "James Clark" <james@domain.com> [17] To: "Frank Do" <adresse@adresse.de>, "James Clark" <james@domain.com> [18] To: "Frank \" \\Do" <adresse@adresse.de> [18] To: "Frank \" \\Do" <adresse@adresse.de> [19] To: "Frank \" \\Do" <adresse@adresse.de> [19] To: "Frank \" \\Do" <adresse@adresse.de> [20] Subject: A REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY /REALLY/ LONG test [20] Subject: A REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY REALLY /REALLY/ LONG test [21] Subject: =?UTF-8?B?VEVTVCBTw7xwZXIgZ3LDtnNlIHRvbGxlIGdyw7zDn2Ugdm9uIG1p?= =?UTF-8?B?ciBTw7xwZXIgZ3LDtnNlIHRvbGxlIGdyw7zDn2Ugdm9uIG1pciBTw7xwZXIg?= =?UTF-8?B?Z3LDtnNlIHRvbGxlIGdyw7zDn2Ugdm9uIG1pciBTw7xwZXIgZ3LDtnNlIHRv?= =?UTF-8?B?bGxlIGdyw7zDn2Ugdm9uIG1pciBTw7xwZXIgZ3LDtnNlIHRvbGxlIGdyw7w=?= =?UTF-8?B?w59lIHZvbiBtaXIgU8O8cGVyIGdyw7ZzZSB0b2xsZSBncsO8w59lIHZvbiBt?= =?UTF-8?B?aXIgU8O8cGVyIGdyw7ZzZSB0b2xsZSBncsO8w59lIHZvbiBtaXIgU8O8cGVy?= =?UTF-8?B?IGdyw7ZzZSB0b2xsZSBncsO8w59lIHZvbiBtaXIgU8O8cGVyIGdyw7ZzZSB0?= =?UTF-8?B?b2xsZSBncsO8w59lIHZvbiBtaXIhISE/?= [21] Subject: =?UTF-8?Q?TEST_S=C3=BCper_gr=C3=B6se_tolle_gr=C3=BC=C3=9Fe_von_m?= =?UTF-8?Q?ir_S=C3=BCper_gr=C3=B6se_tolle_gr=C3=BC=C3=9Fe_von_mir_S=C3=BCp?= =?UTF-8?Q?er_gr=C3=B6se_tolle_gr=C3=BC=C3=9Fe_von_mir_S=C3=BCper_gr=C3=B6?= =?UTF-8?Q?se_tolle_gr=C3=BC=C3=9Fe_von_mir_S=C3=BCper_gr=C3=B6se_tolle_gr?= =?UTF-8?Q?=C3=BC=C3=9Fe_von_mir_S=C3=BCper_gr=C3=B6se_tolle_gr=C3=BC?= =?UTF-8?Q?=C3=9Fe_von_mir_S=C3=BCper_gr=C3=B6se_tolle_gr=C3=BC=C3=9Fe_von?= =?UTF-8?Q?_mir_S=C3=BCper_gr=C3=B6se_tolle_gr=C3=BC=C3=9Fe_von_mir_S?= =?UTF-8?Q?=C3=BCper_gr=C3=B6se_tolle_gr=C3=BC=C3=9Fe_von_mir!!!=3F?= [22] Subject: =?UTF-8?B?VXBkYXRlOiBNaWNyb3NvZnQgV2luZG93cy1Ub29sIHp1bSBFbnRm?= =?UTF-8?B?ZXJuZW4gYsO2c2FydGlnZXIgU29mdHdhcmUgMy42?= [22] Subject: =?UTF-8?Q?Update=3A_Microsoft_Windows-Tool_zum_Entfernen_b=C3=B6?= =?UTF-8?Q?sartiger_Software_3=2E6?= [23] From: =?UTF-8?B?dGVzdEBuw6BtZQ==?= <user@domain.com> [23] From: =?UTF-8?Q?test=40n=C3=A0me?= <user@domain.com> [24] From: Test <"test test"@domain.com> [24] From: Test <"test test"@domain.com> [25] From: "test test"@domain.com [25] From: "test test"@domain.com [26] From: <"test test"@domain.com> [26] From: <"test test"@domain.com> [27] From: Doe <test@domain.com> [27] From: Doe <test@domain.com> [28] From: "John Doe" <test@domain.com> [28] From: "John Doe" <test@domain.com> [29] Mail-Reply-To: "adresse@adresse.de" <addresse@adresse> [29] Mail-Reply-To: "adresse@adresse.de" <addresse@adresse> [30] Mail-Reply-To: =?UTF-8?B?w7bDpMO8?= <adresse@adresse.de> [30] Mail-Reply-To: =?UTF-8?Q?=C3=B6=C3=A4=C3=BC?= <adresse@adresse.de> [31] Subject: =?ISO-2022-JP?B?GyRCLWo7M3l1OSk2SBsoQg==?= [31] Subject: =?ISO-2022-JP?Q?=24B-j=28B=24B=3B3=28B=24Byu=28B?= =?ISO-2022-JP?Q?=24B9=29=28B=24B6H=28B?=
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
class-filename.phpt
242 bytes
0644
content_transfer_encoding.phpt
924 bytes
0644
encoding_case.phpt
244 bytes
0644
headers_with_mbstring.phpt
8855 bytes
0644
headers_without_mbstring.phpt
8517 bytes
0644
qp_encoding_test.phpt
3557 bytes
0644
sleep_wakeup_EOL-bug3488-part1.phpt
545 bytes
0644
sleep_wakeup_EOL-bug3488-part2.phpt
586 bytes
0644
test_Bug_10596_1.phpt
296 bytes
0644
test_Bug_10816_1.phpt
570 bytes
0644
test_Bug_10999_1.phpt
491 bytes
0644
test_Bug_11381.phpt
557 bytes
0644
test_Bug_11731.phpt
684 bytes
0644
test_Bug_12165.phpt
381 bytes
0644
test_Bug_12385_1.phpt
539 bytes
0644
test_Bug_12411.phpt
649 bytes
0644
test_Bug_12466.phpt
445 bytes
0644
test_Bug_13032.phpt
539 bytes
0644
test_Bug_13444.phpt
670 bytes
0644
test_Bug_13962.phpt
367 bytes
0644
test_Bug_14529.phpt
521 bytes
0644
test_Bug_14779.phpt
489 bytes
0644
test_Bug_14780.phpt
351 bytes
0644
test_Bug_15320.phpt
462 bytes
0644
test_Bug_16539.phpt
7513 bytes
0644
test_Bug_17025.phpt
412 bytes
0644
test_Bug_17175.phpt
695 bytes
0644
test_Bug_18083.phpt
592 bytes
0644
test_Bug_18772.phpt
880 bytes
0644
test_Bug_19497.phpt
547 bytes
0644
test_Bug_20226.phpt
341 bytes
0644
test_Bug_20273.phpt
302 bytes
0644
test_Bug_20563.phpt
378 bytes
0644
test_Bug_20564.phpt
270 bytes
0644
test_Bug_21027.phpt
7295 bytes
0644
test_Bug_21098.phpt
390 bytes
0644
test_Bug_21205.phpt
1310 bytes
0644
test_Bug_21206.phpt
590 bytes
0644
test_Bug_21255.phpt
352 bytes
0644
test_Bug_3513_1.phpt
475 bytes
0644
test_Bug_3513_2.phpt
567 bytes
0644
test_Bug_3513_3.phpt
631 bytes
0644
test_Bug_7561_1.phpt
645 bytes
0644
test_Bug_8386_1.phpt
551 bytes
0644
test_Bug_8541_1.phpt
499 bytes
0644
test_Bug_9722_1.phpt
360 bytes
0644
test_Bug_GH16.phpt
1602 bytes
0644
test_Bug_GH19.phpt
997 bytes
0644
test_Bug_GH26.phpt
755 bytes
0644
test_linebreak_dot.phpt
1688 bytes
0644
test_linebreak_larger_76.phpt
2307 bytes
0644
N4ST4R_ID | Naxtarrr