Doc #77871 [Ver->Csd]: NumberFormatter::formatCurrency returns false, which is not documented

From: Date: Wed, 17 Apr 2019 10:47:35 +0000
Subject: Doc #77871 [Ver->Csd]: NumberFormatter::formatCurrency returns false, which is not documented
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16596@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77871&edit=1 ID: 77871 Updated by: cmb@php.net Reported by: yugenkr at gmail dot com Summary: NumberFormatter::formatCurrency returns false, which is not documented -Status: Verified +Status: Closed Type: Documentation Problem Package: intl Operating System: CentOS 7 and Darwin 18.5.0 PHP Version: 7.2.17 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2019-04-17 10:47:19] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=347262 Log: Fix #77871: NumberFormatter::formatCurrency returns false, which is not documented ------------------------------------------------------------------------ [2019-04-11 15:51:30] cmb@php.net Indeed, INTL_METHOD_CHECK_STATUS[1] can return FALSE. [1] <https://github.com/php/php-src/blob/php-7.3.4/ext/intl/formatter/formatter_format.c#L164> ------------------------------------------------------------------------ [2019-04-09 13:17:52] yugenkr at gmail dot com Description: ------------ --- From manual page: https://php.net/numberformatter.formatcurrency --- It's documented, that return value is a string. Appears, false may be returned. --- intl --- Internationalization support => enabled version => 1.1.0 ICU version => 63.1 ICU Data version => 63.1 ICU TZData version => 2018e ICU Unicode version => 11.0 php 7.2.16 Test script: --------------- $formatter = new \NumberFormatter('es_DO', \NumberFormatter::CURRENCY); $formatter->formatCurrency(10, 'RD$'); Expected result: ---------------- RD$10.00 Actual result: -------------- false ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77871&edit=1

« previous php.doc.bugs (#16596) next »