Doc #74467 [Opn->Ver]: The fallback parameter of ResourceBundle::get is undocumented

From: Date: Wed, 19 Apr 2017 15:51:07 +0000
Subject: Doc #74467 [Opn->Ver]: The fallback parameter of ResourceBundle::get is undocumented
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14646@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: Open +Status: Verified Type: Documentation Problem Package: intl PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [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

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