From: Ilia Alshanetsky Date: Wed, 13 Nov 2002 16:52:48 +0000 (+0000) Subject: Added a skip condition for when the encoding needed for the test is not X-Git-Tag: BEFORE_RENAMING~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0d519f730f79ce1e97f53b32a1ce2324e10f572;p=php Added a skip condition for when the encoding needed for the test is not available or supported. --- diff --git a/ext/mbstring/tests/mb_send_mail05.phpt b/ext/mbstring/tests/mb_send_mail05.phpt index 245da08eb2..b36b41813e 100644 --- a/ext/mbstring/tests/mb_send_mail05.phpt +++ b/ext/mbstring/tests/mb_send_mail05.phpt @@ -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 diff --git a/ext/mbstring/tests/mb_send_mail06.phpt b/ext/mbstring/tests/mb_send_mail06.phpt index f14a15c9ab..b8dafe58cc 100644 --- a/ext/mbstring/tests/mb_send_mail06.phpt +++ b/ext/mbstring/tests/mb_send_mail06.phpt @@ -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