summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-11-21 13:56:49 +0100
committerAnatol Belski <ab@php.net>2014-11-21 13:56:49 +0100
commit59a9e7af215fb2411035f8d75386acbb38cd8e83 (patch)
tree4053153557dc22b39b9afe8b0aa075a65205c77b
parentf2e33dc725ebc56a4871ae38e3a36ec96dba21ea (diff)
downloadphp-git-59a9e7af215fb2411035f8d75386acbb38cd8e83.tar.gz
fixed test
on Linux gettext requires a locale to be installed on the system
-rw-r--r--ext/gettext/tests/bug66267.phpt8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/gettext/tests/bug66267.phpt b/ext/gettext/tests/bug66267.phpt
index c3aa42379e..26963acb7e 100644
--- a/ext/gettext/tests/bug66267.phpt
+++ b/ext/gettext/tests/bug66267.phpt
@@ -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