Fix test output due to float to string locale independent change

Also use de_DE locale instead
This commit is contained in:
George Peter Banyard 2021-03-22 06:00:41 +00:00
parent 84a3f59d45
commit 7a1af523fa
No known key found for this signature in database
GPG Key ID: D49A095D7329F6DC

View File

@ -3,8 +3,8 @@ 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";
if (false === setlocale(LC_ALL, 'de_DE.utf-8', 'de_DE')) {
echo "skip Locale de_DE.utf-8 not present";
}
?>
--FILE--
@ -13,7 +13,7 @@ if (false === setlocale(LC_ALL, 'hr_HR.utf-8', 'hr_HR')) {
require_once('config.inc');
$dbh = pg_connect($conn_str);
setlocale(LC_ALL, 'hr_HR.utf-8', 'hr_HR');
setlocale(LC_ALL, 'de_DE.utf-8', 'de_DE');
echo 3.5 , "\n";
pg_query_params("SELECT $1::numeric", array(3.5));
pg_close($dbh);
@ -22,5 +22,5 @@ echo "Done".PHP_EOL;
?>
--EXPECT--
3,5
3.5
Done