From: Nuno Lopes Date: Sun, 27 Jan 2008 16:45:43 +0000 (+0000) Subject: fix a bunch of SKIPIF (check for non available locales) X-Git-Tag: RELEASE_1_3_1~280 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d16f4cad0a0550ce9c022c5082cd634518ac8a96;p=php fix a bunch of SKIPIF (check for non available locales) --- diff --git a/ext/standard/tests/strings/moneyformat.phpt b/ext/standard/tests/strings/moneyformat.phpt index 7f14b095ae..c045bb19c9 100755 --- a/ext/standard/tests/strings/moneyformat.phpt +++ b/ext/standard/tests/strings/moneyformat.phpt @@ -5,6 +5,10 @@ money_format test if (!function_exists('money_format') || !function_exists('setlocale')) { die("SKIP money_format - not supported\n"); } + +if (setlocale(LC_MONETARY, 'en_US') == false) { + die('skip en_US locale not available'); +} ?> --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --ENV-- LC_ALL=en_US.utf8; diff --git a/ext/standard/tests/strings/setlocale_variation5.phpt b/ext/standard/tests/strings/setlocale_variation5.phpt index d2c3cf08a9..c8e947b09d 100644 --- a/ext/standard/tests/strings/setlocale_variation5.phpt +++ b/ext/standard/tests/strings/setlocale_variation5.phpt @@ -5,6 +5,9 @@ Test setlocale() function : usage variations - Setting system locale as empty st if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip Not valid for windows'); } +if (setlocale(LC_ALL,'en_AU.utf8') === false || setlocale(LC_ALL,'en_US.utf8') === false) { + die('skip en_AU.utf8/en_US.utf8 locales not available'); +} ?> --ENV-- LC_ALL=en_US.utf8;