|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-09-17 13:01 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2021-09-17 13:01 UTC] cmb@php.net
[2021-09-17 13:02 UTC] cmb@php.net
[2021-09-17 13:36 UTC] darius at frontu dot com
[2021-09-17 14:28 UTC] cmb@php.net
-Status: Feedback
+Status: Not a bug
[2021-09-17 14:28 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 13:00:01 2025 UTC |
Description: ------------ NumberFormatter does not work correctly only in lt & ar locales while trying to parse negative integers. af int(-1) af_NA int(-1) af_ZA int(-1) ak int(-1) ak_GH int(-1) sq int(-1) sq_AL int(-1) sq_XK int(-1) sq_MK int(-1) am int(-1) am_ET int(-1) ar bool(false) ar_DZ bool(false) ar_BH bool(false) ar_KM bool(false) ar_DJ bool(false) ar_EG bool(false) ar_ER bool(false) ar_IQ bool(false) ar_IL bool(false) ar_YE bool(false) ar_JO bool(false) ar_QA bool(false) ar_KW bool(false) ar_LB bool(false) ar_LY bool(false) ar_MA bool(false) ar_MR bool(false) ar_OM bool(false) ar_PS bool(false) ar_SA bool(false) ar_SY bool(false) ar_SD bool(false) ar_SO bool(false) ar_SS bool(false) ar_TD bool(false) ar_TN bool(false) ar_AE bool(false) ar_EH bool(false) ... ln_CG int(-1) ln_CF int(-1) lt bool(false) lt_LT bool(false) lu int(-1) lu_CD int(-1) lb int(-1) lb_LU int(-1) Test script: --------------- $position = 0; $formatter = new \NumberFormatter('lt', \NumberFormatter::DECIMAL); $result = $formatter->parse(-1, \NumberFormatter::TYPE_INT64, $position); var_dump($result); Expected result: ---------------- int(-1) Actual result: -------------- bool(false)