From b0d519f730f79ce1e97f53b32a1ce2324e10f572 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 13 Nov 2002 16:52:48 +0000 Subject: [PATCH] Added a skip condition for when the encoding needed for the test is not available or supported. --- ext/mbstring/tests/mb_send_mail05.phpt | 3 +++ ext/mbstring/tests/mb_send_mail06.phpt | 3 +++ 2 files changed, 6 insertions(+) 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 -- 2.50.1