]> granicus.if.org Git - php/commitdiff
Skip locale dependent test if locale not available
authorNikita Popov <nikic@php.net>
Sat, 23 Mar 2013 20:05:29 +0000 (21:05 +0100)
committerNikita Popov <nikic@php.net>
Sat, 23 Mar 2013 20:09:21 +0000 (21:09 +0100)
ext/pgsql/tests/bug46408.phpt

index 8c72ba5f3eb8067b5a1021dcb7196ea78126c9ab..bf8429090731fd990ba99b95a15485b080109202 100644 (file)
@@ -3,6 +3,9 @@ Bug #46408 (Locale number format settings can cause pg_query_params to break wit
 --SKIPIF--
 <?php
 require_once('skipif.inc');
+if (false === setlocale(LC_ALL, 'hr_HR.utf-8', 'hr_HR')) {
+    echo "skip Locale hr_HR.utf-8 not present";
+}
 ?>
 --FILE--
 <?php