From:             v-altruo at microsoft dot com
Operating system: Windows
PHP version:      7.2.18RC1
Package:          Testing related
Bug Type:         Bug
Bug description:localconv mismatch

Description:
------------
Test fails across all builds. 
Test location: ext\standard\tests\strings\bug65769.phpt

I believe the separator for thousands in Swedish are " " which is why
the test is failing.

Test script:
---------------
$locale = setlocale(LC_ALL, 'sve');
$lconv = localeconv();
var_dump(
                $locale,
                $lconv['decimal_point'],
                $lconv['thousands_sep'],
                $lconv['int_curr_symbol'],
                $lconv['currency_symbol'],
                $lconv['mon_decimal_point'],
                $lconv['mon_thousands_sep']
        );

Expected result:
----------------
string(19) "Swedish_Sweden.1252"
string(1) ","
string(1) " "
string(3) "SEK"
string(2) "kr"
string(1) ","
string(1) "."

Actual result:
--------------
string(19) "Swedish_Sweden.1252"
string(1) ","
string(1) " "
string(3) "SEK"
string(2) "kr"
string(1) ","
string(1) " "

-- 
Edit bug report at https://bugs.php.net/bug.php?id=77940&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=77940&r=trysnapshot54
Try a snapshot (PHP 5.5):   
https://bugs.php.net/fix.php?id=77940&r=trysnapshot55
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=77940&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=77940&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=77940&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=77940&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=77940&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=77940&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=77940&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=77940&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=77940&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=77940&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=77940&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77940&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=77940&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=77940&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=77940&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77940&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=77940&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=77940&r=mysqlcfg

Reply via email to