|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-01 11:26 UTC] bjori@php.net
[2009-07-01 20:32 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 03:00:02 2026 UTC |
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)