]> granicus.if.org Git - php/commitdiff
fixed test
authorAnatol Belski <ab@php.net>
Fri, 21 Nov 2014 12:56:49 +0000 (13:56 +0100)
committerAnatol Belski <ab@php.net>
Fri, 21 Nov 2014 12:56:49 +0000 (13:56 +0100)
on Linux gettext requires a locale to be installed on the system

ext/gettext/tests/bug66267.phpt

index c3aa42379e584e2ff191382f9be182dceffa2a9b..26963acb7e61e7a6aa153f0bf5327cf07e3ebb4d 100644 (file)
@@ -10,6 +10,14 @@ if (PHP_ZTS) {
        should be even XFAIL till it's fixed there */
        die("skip NTS only");
 }
+if (substr(PHP_OS, 0, 3) != 'WIN') {
+       $loc = ["de_DE", "fr_FR", "en_US"];
+       foreach($loc as $l) {
+               if (!setlocale(LC_ALL, $l)) {
+                       die("SKIP '$l' locale not supported.");
+               }
+       }
+}
 ?>
 --FILE--
 <?php