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

From: Date: Thu, 11 Apr 2019 15:51:30 +0000
Subject: Doc #77871 [Opn->Ver]: NumberFormatter::formatCurrency returns false, which is not documented
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16564@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: Open +Status: Verified Type: Documentation Problem Package: intl Operating System: CentOS 7 and Darwin 18.5.0 PHP Version: 7.2.17 Block user comment: N Private report: N New Comment: 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> Previous Comments: ------------------------------------------------------------------------ [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 (#16564) next »