Doc #74467 [NEW]: The fallback parameter of ResourceBundle::get is undocumented

From: Date: Tue, 18 Apr 2017 11:17:25 +0000
Subject: Doc #74467 [NEW]: The fallback parameter of ResourceBundle::get is undocumented
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14644@lists.php.net to get a copy of this message
From: fabien dot villepinte at gmail dot com Operating system: PHP version: Irrelevant Package: intl Bug Type: Documentation Problem Bug description:The fallback parameter of ResourceBundle::get is undocumented 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 bug report at https://bugs.php.net/bug.php?id=74467&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74467&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74467&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74467&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74467&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74467&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74467&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74467&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74467&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74467&r=support Expected behavior: https://bugs.php.net/fix.php?id=74467&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74467&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74467&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74467&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74467&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74467&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74467&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74467&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74467&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74467&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74467&r=mysqlcfg

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