From: Stanislav Malyshev Date: Mon, 1 Dec 2014 00:10:51 +0000 (-0800) Subject: fix tests for systems with no de_DE locales X-Git-Tag: PRE_NATIVE_TLS_MERGE~109^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6aa6324fbfe981847926d3e048f83bd4b468704;p=php fix tests for systems with no de_DE locales --- 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--