From: christoph at ymail dot com Operating system: Windows 7 x64 PHP version: 5.5.4 Package: *General Issues Bug Type: Bug Bug description:localeconv() broken in TS builds
Description: ------------ I try to set the locale for my script on Windows. There is *no* webserver involved, we're talking about running vanilla PHP binaries directly on the cmd. Using the TS builds does not work, localeconv() returns empty data. Using the NTS builds works fine. Both PHP versions are 5.5.4, straight from windows.php.net. No changes to the php.ini (in fact, there is no php.ini at all). There are no other PHP processes running anywhere on my system. I can see (even if I don't fully understand) problems using setlocale() in multu- threaded webservers and stuff, but there is no multi-threading involved here. Test script: --------------- <?php setlocale(LC_ALL, 'sve'); print_r(localeconv()); Expected result: ---------------- Array ( [decimal_point] => , [thousands_sep] => Â [int_curr_symbol] => SEK [currency_symbol] => kr [mon_decimal_point] => , [mon_thousands_sep] => . [positive_sign] => [negative_sign] => - [int_frac_digits] => 2 [frac_digits] => 2 [p_cs_precedes] => 0 [p_sep_by_space] => 1 [n_cs_precedes] => 0 [n_sep_by_space] => 1 [p_sign_posn] => 1 [n_sign_posn] => 1 [grouping] => Array ( [0] => 3 ) [mon_grouping] => Array ( [0] => 3 ) ) Actual result: -------------- Array ( [decimal_point] => . [thousands_sep] => [int_curr_symbol] => [currency_symbol] => [mon_decimal_point] => [mon_thousands_sep] => [positive_sign] => [negative_sign] => [int_frac_digits] => 127 [frac_digits] => 127 [p_cs_precedes] => 127 [p_sep_by_space] => 127 [n_cs_precedes] => 127 [n_sep_by_space] => 127 [p_sign_posn] => 127 [n_sign_posn] => 127 [grouping] => Array ( ) [mon_grouping] => Array ( ) ) -- Edit bug report at https://bugs.php.net/bug.php?id=65769&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65769&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65769&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65769&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65769&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65769&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65769&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65769&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65769&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65769&r=support Expected behavior: https://bugs.php.net/fix.php?id=65769&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65769&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65769&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65769&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65769&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65769&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65769&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65769&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65769&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65769&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65769&r=mysqlcfg