#48751 [NEW]: intl Locale::filterMatches wrong parameters and example

From: Date: Wed, 01 Jul 2009 07:48:35 +0000
Subject: #48751 [NEW]: intl Locale::filterMatches wrong parameters and example
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2440@lists.php.net to get a copy of this message
From: ladislav at marek dot su Operating system: irrelevant PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: intl Locale::filterMatches wrong parameters and example Description: ------------ Documentation says that Locale::filterMatches has two parameters, but reflection shows three: Method [ <internal:intl> static public method filterMatches ] { - Parameters [3] { Parameter #0 [ <required> $arg1 ] Parameter #1 [ <required> $arg2 ] Parameter #2 [ <required> $arg3 ] } } And in OO example is used incorrect method name Locale::filter_matches instead of Locale::filterMatches. http://docs.php.net/manual/en/locale.filtermatches.php Reproduce code: --------------- var_dump(Locale::filterMatches('de-DE-1996', 'de-DE')); Expected result: ---------------- bool(%b) Actual result: -------------- Warning: Locale::filterMatches() expects exactly 3 parameters, 2 given in %s on line %n bool(false) -- Edit bug report at http://bugs.php.net/?id=48751&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48751&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48751&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48751&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48751&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48751&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48751&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48751&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48751&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48751&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48751&r=support Expected behavior: http://bugs.php.net/fix.php?id=48751&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48751&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48751&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48751&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48751&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48751&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48751&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48751&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48751&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48751&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48751&r=mysqlcfg

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