From: abdevg at gmail dot com Operating system: Linux PHP version: 5.4.12 Package: Unknown/Other Function Bug Type: Feature/Change Request Bug description:localeconv() should respect ISO C99
Description: ------------ Locale data contain important information about currency formatting in fields int_p_sep_by_space and int_n_sep_by_space. C structure lconv contains such fields while PHP localeconv() doesn't return them. I've attached a patch but it probably should also contain something like #IFDEF USE_ISOC99 (sorry, I am not a C developer) Test script: --------------- set_locale(LC_MONETARY, 'en_US.UTF-8'); $lc = localeconv(); print $lc['int_p_sep_by_space']; Expected result: ---------------- 1 Actual result: -------------- PHP Notice: Undefined index: int_p_sep_by_space -- Edit bug report at https://bugs.php.net/bug.php?id=64367&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64367&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64367&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64367&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64367&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64367&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64367&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64367&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64367&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64367&r=support Expected behavior: https://bugs.php.net/fix.php?id=64367&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64367&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64367&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64367&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64367&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64367&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64367&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64367&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64367&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64367&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64367&r=mysqlcfg