|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-08 09:25 UTC] eru@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 13:00:01 2025 UTC |
Description: ------------ localeconv() function returns the wrong values for int_frac_digits and frac_digits. they should be "2" and not "0" (which was correct in the time of the Lira) Reproduce code: --------------- <?php setlocale(LC_ALL, it_IT); var_dump(localeconv()); Expected result: ---------------- array(18) { ["decimal_point"]=> string(1) "." <snip> ["int_frac_digits"]=> int(2) ["frac_digits"]=> int(2) <snip> ["mon_grouping"]=> array(2) { [0]=> int(3) [1]=> int(3) } } Actual result: -------------- array(18) { ["decimal_point"]=> string(1) "." <snip> ["int_frac_digits"]=> int(0) ["frac_digits"]=> int(0) <snip> ["mon_grouping"]=> array(2) { [0]=> int(3) [1]=> int(3) } }