]> granicus.if.org Git - php/commitdiff
Added a skip condition for when the encoding needed for the test is not
authorIlia Alshanetsky <iliaa@php.net>
Wed, 13 Nov 2002 16:52:48 +0000 (16:52 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 13 Nov 2002 16:52:48 +0000 (16:52 +0000)
available or supported.

ext/mbstring/tests/mb_send_mail05.phpt
ext/mbstring/tests/mb_send_mail06.phpt

index 245da08eb246bed7e2fe47501e806956a396bfaa..b36b41813e22f74c3357c7e4400ba02ae2342683 100644 (file)
@@ -5,6 +5,9 @@ mb_send_mail() test 5 (lang=Simplified Chinese)
 if (@mb_send_mail() === false || !mb_language("Simplified Chinese")) {
        die("skip mb_send_mail() not available");
 }
+if (!@mb_internal_encoding('GB2312')) {
+       die("skip GB2312 encoding is not avaliable on this platform");
+}
 ?>
 --INI--
 sendmail_path=cat
index f14a15c9ab769d626153fe47ab2608a9c56688eb..b8dafe58ccc2ee834ad3535693eaf5a2e393331e 100644 (file)
@@ -5,6 +5,9 @@ mb_send_mail() test 6 (lang=Traditional Chinese)
 if (@mb_send_mail() === false || !mb_language("Traditional Chinese")) {
        die("skip mb_send_mail() not available");
 }
+if (!@mb_internal_encoding('BIG5')) {
+       die("skip BIG5 encoding is not avaliable on this platform");
+}
 ?>
 --INI--
 sendmail_path=cat