1--TEST-- 2mb_send_mail() test 6 (lang=Traditional Chinese) 3--EXTENSIONS-- 4mbstring 5--SKIPIF-- 6<?php 7if (!function_exists("mb_send_mail") || !mb_language("Traditional Chinese")) { 8 die("skip mb_send_mail() not available"); 9} 10if (!@mb_internal_encoding('BIG5')) { 11 die("skip BIG5 encoding is not available on this platform"); 12} 13?> 14--INI-- 15sendmail_path={MAIL:{PWD}/mb_send_mail06.eml} 16mail.add_x_header=off 17--FILE-- 18<?php 19$to = 'example@example.com'; 20 21/* default setting */ 22mb_send_mail($to, mb_language(), "test"); 23readfile(__DIR__ . "/mb_send_mail06.eml"); 24 25/* Traditional Chinese () */ 26if (mb_language("traditional chinese")) { 27 mb_internal_encoding('BIG5'); 28 mb_send_mail($to, "���� ".mb_language(), "����"); 29 readfile(__DIR__ . "/mb_send_mail06.eml"); 30} 31?> 32--CLEAN-- 33<?php 34@unlink(__DIR__ . "/mb_send_mail06.eml"); 35?> 36--EXPECTF-- 37To: example@example.com 38Subject: %s 39MIME-Version: 1.0 40Content-Type: text/plain; charset=%s 41Content-Transfer-Encoding: %s 42 43%s 44To: example@example.com 45Subject: =?BIG5?B?tPrF5yBUcmFkaXRpb25hbCBDaGluZXNl?= 46MIME-Version: 1.0 47Content-Type: text/plain; charset=BIG5 48Content-Transfer-Encoding: 8bit 49 50���� 51