|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-01-18 10:15 UTC] aharvey@php.net
-Package: Unknown/Other Function
+Package: I18N and L10N related
[2011-01-18 14:01 UTC] iliaa@php.net
-Status: Open
+Status: Bogus
[2011-01-18 14:01 UTC] iliaa@php.net
[2011-01-19 17:24 UTC] _coola_ at arcor dot de
[2011-01-25 16:41 UTC] garioch2 at googlemail dot com
[2011-01-26 12:28 UTC] _coola_ at arcor dot de
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 19:00:01 2025 UTC |
Description: ------------ Hi! :) I think i have found a bug in NumberFormatter. parseCurrency() returns 0 instead of false in the following test script. Same Problem with parse(). Test script: --------------- $fmt=new NumberFormatter('de_DE',NumberFormatter::CURRENCY); $result=$fmt->parseCurrency('aaa',$currency); //$result=$fmt->parse('aaa'); // results: var_dump($result); // float(0) var_dump($currency); // string(0) "" // no errors!! var_dump($fmt->getErrorCode()); // int(0) var_dump($fmt->getErrorMessage()); // string(12) "U_ZERO_ERROR" var_dump(intl_is_failure($fmt->getErrorCode())); // bool(false)