mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Fix test output due to float to string locale independent change
Also use de_DE locale instead
This commit is contained in:
parent
84a3f59d45
commit
7a1af523fa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user