diff options
author | Stanislav Malyshev <stas@php.net> | 2014-11-30 16:10:51 -0800 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2014-11-30 16:12:56 -0800 |
commit | f6aa6324fbfe981847926d3e048f83bd4b468704 (patch) | |
tree | 397f09b0da854481135958eece9e4d5151320f1a | |
parent | e1d4ac426c817377cbe01287b6ada824146d26c9 (diff) | |
download | php-git-f6aa6324fbfe981847926d3e048f83bd4b468704.tar.gz |
fix tests for systems with no de_DE locales
-rw-r--r-- | ext/intl/tests/bug67052.phpt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/intl/tests/bug67052.phpt b/ext/intl/tests/bug67052.phpt index 8edd65de71..80c7e88017 100644 --- a/ext/intl/tests/bug67052.phpt +++ b/ext/intl/tests/bug67052.phpt @@ -6,6 +6,11 @@ Bug #67052 - NumberFormatter::parse() resets LC_NUMERIC setting if (substr(PHP_OS, 0, 3) == 'WIN') { die("skip Valid only on non Windows"); } +$l = setlocale(LC_ALL, 'de_DE'); +if($l === false) { + die("skip de_DE locale not installed"); +} +setlocale(LC_ALL, $l); ?> --FILE-- <?php |