Skip to content

Commit 7a1af52

Browse files
committed
Fix test output due to float to string locale independent change
Also use de_DE locale instead
1 parent 84a3f59 commit 7a1af52

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/pgsql/tests/bug46408.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Bug #46408 (Locale number format settings can cause pg_query_params to break wit
33
--SKIPIF--
44
<?php
55
require_once('skipif.inc');
6-
if (false === setlocale(LC_ALL, 'hr_HR.utf-8', 'hr_HR')) {
7-
echo "skip Locale hr_HR.utf-8 not present";
6+
if (false === setlocale(LC_ALL, 'de_DE.utf-8', 'de_DE')) {
7+
echo "skip Locale de_DE.utf-8 not present";
88
}
99
?>
1010
--FILE--
@@ -13,7 +13,7 @@ if (false === setlocale(LC_ALL, 'hr_HR.utf-8', 'hr_HR')) {
1313
require_once('config.inc');
1414

1515
$dbh = pg_connect($conn_str);
16-
setlocale(LC_ALL, 'hr_HR.utf-8', 'hr_HR');
16+
setlocale(LC_ALL, 'de_DE.utf-8', 'de_DE');
1717
echo 3.5 , "\n";
1818
pg_query_params("SELECT $1::numeric", array(3.5));
1919
pg_close($dbh);
@@ -22,5 +22,5 @@ echo "Done".PHP_EOL;
2222

2323
?>
2424
--EXPECT--
25-
3,5
25+
3.5
2626
Done

0 commit comments

Comments
 (0)