]> granicus.if.org Git - php/commitdiff
fix skipif
authorZoe Slattery <zoe@php.net>
Thu, 25 Jun 2009 14:49:47 +0000 (14:49 +0000)
committerZoe Slattery <zoe@php.net>
Thu, 25 Jun 2009 14:49:47 +0000 (14:49 +0000)
ext/standard/tests/strings/moneyformat.phpt

index 7f14b095aeb7b45e74663cf56863edee45fb6682..1866fa10d33e1dcac582ae5b3c0faf5cbfa20746 100755 (executable)
@@ -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--
 <?php