Doc #74467 [Ver->Csd]: The fallback parameter of ResourceBundle::get is undocumented
| From: | cmb@php.net | Date: | Wed, 19 Apr 2017 15:59:56 +0000 |
| Subject: | Doc #74467 [Ver->Csd]: The fallback parameter of ResourceBundle::get is undocumented | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14647@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74467&edit=1
ID: 74467
Updated by: cmb@php.net
Reported by: fabien dot villepinte at gmail dot com
Summary: The fallback parameter of ResourceBundle::get is
undocumented
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: intl
PHP Version: Irrelevant
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:
------------------------------------------------------------------------
[2017-04-19 15:59:14] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=342390
Log: Fix #74467: The fallback parameter of ResourceBundle::get is undocumented
------------------------------------------------------------------------
[2017-04-18 11:17:22] fabien dot villepinte at gmail dot com
Description:
------------
The ResourceBundle::get() method and the resourcebundle_get() function have an undocumented optional
parameter: fallback (bool, default true)
See the doc: http://php.net/manual/en/resourcebundle.get.php
The related code: https://github.com/php/php-src/blob/b78b15e88022b70ce6810f8b8dd1e42c2dac44b3/ext/intl/resourcebundle/resourcebundle_class.c#L259
Test script:
---------------
<?php
$rm = new ReflectionMethod(ResourceBundle::class, 'get');
var_dump($rm->getParameters()[1]->getName());
var_dump($rm->getParameters()[1]->isOptional());
$rf = new ReflectionFunction('resourcebundle_get');
var_dump($rf->getParameters()[2]->getName());
var_dump($rf->getParameters()[2]->isOptional());
Actual result:
--------------
string(8) "fallback"
bool(true)
string(8) "fallback"
bool(true)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74467&edit=1