com php-src: Skip locale dependent test if locale not available: ext/pgsql/tests/bug46408.phpt
| From: | Nikita Popov | Date: | Sat, 23 Mar 2013 20:09:21 +0000 |
| Subject: | com php-src: Skip locale dependent test if locale not available: ext/pgsql/tests/bug46408.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71705@lists.php.net to get a copy of this message | ||
Commit: 430c987716d32c4a509e6504a5a3ac3a8b0d0bbd
Author: Nikita Popov <nikic@php.net> Sat, 23 Mar 2013 21:05:29 +0100
Parents: c2893ab592f09dd50cfcbd0c499987d93146d18b
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=430c987716d32c4a509e6504a5a3ac3a8b0d0bbd
Log:
Skip locale dependent test if locale not available
Changed paths:
M ext/pgsql/tests/bug46408.phpt
Diff:
diff --git a/ext/pgsql/tests/bug46408.phpt b/ext/pgsql/tests/bug46408.phpt
index 8c72ba5..bf84290 100644
--- a/ext/pgsql/tests/bug46408.phpt
+++ b/ext/pgsql/tests/bug46408.phpt
@@ -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