PATH:
opt
/
alt
/
php80
/
usr
/
share
/
pear
/
test
/
Mail_Mime
/
tests
--TEST-- Bug #21205 Handling ISO-2022-JP headers --SKIPIF-- <?php include "PEAR.php"; if (!extension_loaded('mbstring')) { if (!PEAR::loadExtension('mbstring')) { print('SKIP could not load mbstring module'); } } --FILE-- <?php require_once('Mail/mimePart.php'); $tests = array( '□京都府□', '∠∠∠∠', ); $addr = ' <aaa@bbb.ccc>'; $charset = 'ISO-2022-JP'; $encoding = 'base64'; foreach ($tests as $test) { $test = mb_convert_encoding($test, $charset, 'UTF-8'); print Mail_mimePart::encodeHeader("subject", $test, $charset, $encoding) . PHP_EOL; print Mail_mimePart::encodeHeader("to", $test.$addr, $charset, $encoding) . PHP_EOL; $test = '"' . $test . '"'; print Mail_mimePart::encodeHeader("subject", $test, $charset, $encoding) . PHP_EOL; print Mail_mimePart::encodeHeader("to", $test.$addr, $charset, $encoding) . PHP_EOL; } ?> --EXPECT-- =?ISO-2022-JP?B?GyRCIiI1fkVUSVwiIhsoQg==?= =?ISO-2022-JP?B?GyRCIiI1fkVUSVwiIhsoQg==?= <aaa@bbb.ccc> =?ISO-2022-JP?B?GyRCIiI1fkVUSVwiIhsoQg==?= =?ISO-2022-JP?B?GyRCIiI1fkVUSVwiIhsoQg==?= <aaa@bbb.ccc> =?ISO-2022-JP?B?GyRCIlwiXCJcIlwbKEI=?= =?ISO-2022-JP?B?GyRCIlwiXCJcIlwbKEI=?= <aaa@bbb.ccc> =?ISO-2022-JP?B?GyRCIlwiXCJcIlwbKEI=?= =?ISO-2022-JP?B?GyRCIlwiXCJcIlwbKEI=?= <aaa@bbb.ccc>
[-] test_Bug_GH26.phpt
[edit]
[-] test_Bug_11731.phpt
[edit]
[-] class-filename.phpt
[edit]
[-] test_Bug_GH16.phpt
[edit]
[-] test_Bug_15320.phpt
[edit]
[-] test_Bug_16539.phpt
[edit]
[-] test_Bug_20563.phpt
[edit]
[-] test_Bug_19497.phpt
[edit]
[-] encoding_case.phpt
[edit]
[-] test_Bug_11381.phpt
[edit]
[-] headers_without_mbstring.phpt
[edit]
[-] test_Bug_20273.phpt
[edit]
[-] content_transfer_encoding.phpt
[edit]
[-] test_Bug_7561_1.phpt
[edit]
[-] test_Bug_10596_1.phpt
[edit]
[-] test_Bug_13032.phpt
[edit]
[-] test_Bug_21206.phpt
[edit]
[-] test_Bug_21027.phpt
[edit]
[-] test_linebreak_larger_76.phpt
[edit]
[-] test_Bug_18083.phpt
[edit]
[-] headers_with_mbstring.phpt
[edit]
[-] test_Bug_14780.phpt
[edit]
[-] qp_encoding_test.phpt
[edit]
[-] test_Bug_20226.phpt
[edit]
[-] test_Bug_9722_1.phpt
[edit]
[-] test_Bug_14779.phpt
[edit]
[+]
..
[-] test_Bug_13962.phpt
[edit]
[-] test_Bug_21098.phpt
[edit]
[-] test_Bug_8541_1.phpt
[edit]
[-] test_Bug_13444.phpt
[edit]
[-] test_Bug_3513_1.phpt
[edit]
[-] test_Bug_14529.phpt
[edit]
[-] test_Bug_12466.phpt
[edit]
[-] test_Bug_21205.phpt
[edit]
[-] test_Bug_12411.phpt
[edit]
[-] test_Bug_12165.phpt
[edit]
[-] sleep_wakeup_EOL-bug3488-part2.phpt
[edit]
[-] test_Bug_17025.phpt
[edit]
[-] test_Bug_10816_1.phpt
[edit]
[-] test_Bug_3513_3.phpt
[edit]
[-] test_Bug_GH19.phpt
[edit]
[-] test_Bug_12385_1.phpt
[edit]
[-] test_Bug_10999_1.phpt
[edit]
[-] test_linebreak_dot.phpt
[edit]
[-] test_Bug_21255.phpt
[edit]
[-] test_Bug_8386_1.phpt
[edit]
[-] sleep_wakeup_EOL-bug3488-part1.phpt
[edit]
[-] test_Bug_17175.phpt
[edit]
[-] test_Bug_20564.phpt
[edit]
[-] test_Bug_18772.phpt
[edit]
[-] test_Bug_3513_2.phpt
[edit]