[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-bugs
Subject: [DOC-BUGS] Doc #74467 [Asn->Csd]: The fallback parameter of ResourceBundle::get is undocumented
From: cmb () php ! net
Date: 2017-04-20 15:42:52
Message-ID: 201704201542.v3KFgqFR010417 () sgrv20 ! php ! net
[Download RAW message or body]
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: Assigned
+Status: Closed
Type: Documentation Problem
Package: intl
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thanks for double-checking! Should be fixed now.
Previous Comments:
------------------------------------------------------------------------
[2017-04-20 15:42:25] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=342403
Log: #74467 The fallback parameter of resourcebundle_get is undocumented
------------------------------------------------------------------------
[2017-04-20 15:14:54] fabien dot villepinte at gmail dot com
The fallback parameter has been added only for ResourceBundle::get() but not for \
resourcebundle_get(). Both are equally concerned.
------------------------------------------------------------------------
[2017-04-19 15:59:55] cmb@php.net
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.
------------------------------------------------------------------------
[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
--
PHP Documentation Bugs Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic