com php-src: fix tests for systems with no de_DE locales: ext/intl/tests/bug67052.phpt

From: Date: Mon, 01 Dec 2014 00:12:56 +0000
Subject: com php-src: fix tests for systems with no de_DE locales: ext/intl/tests/bug67052.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-83395@lists.php.net to get a copy of this message
Commit: f6aa6324fbfe981847926d3e048f83bd4b468704 Author: Stanislav Malyshev <stas@php.net> Sun, 30 Nov 2014 16:10:51 -0800 Parents: e1d4ac426c817377cbe01287b6ada824146d26c9 Branches: PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f6aa6324fbfe981847926d3e048f83bd4b468704 Log: fix tests for systems with no de_DE locales Changed paths: M ext/intl/tests/bug67052.phpt Diff: diff --git a/ext/intl/tests/bug67052.phpt b/ext/intl/tests/bug67052.phpt index 8edd65d..80c7e88 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

« previous php.cvs (#83395) next »