|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-07-26 21:50 UTC] pollita@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: pollita
[2017-07-26 21:50 UTC] pollita@php.net
[2017-07-26 22:57 UTC] pollita@php.net
[2017-07-26 22:57 UTC] pollita@php.net
-Status: Assigned
+Status: Closed
[2017-07-26 23:00 UTC] pollita@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 06:00:01 2025 UTC |
Description: ------------ The optional parameters of the functions listed below are described as required by reflection. locale_get_display_language locale_get_display_name locale_get_display_region locale_get_display_script locale_get_display_variant locale_filter_matches locale_lookup Test script: --------------- <?php $funcs = [ 'locale_get_display_language', 'locale_get_display_name', 'locale_get_display_region', 'locale_get_display_script', 'locale_get_display_variant', 'locale_filter_matches', 'locale_lookup', ]; foreach ($funcs as $func) { $rf = new ReflectionFunction($func); printf("%s: %d, %d\n", $func, $rf->getNumberOfParameters(), $rf->getNumberOfRequiredParameters()); } Expected result: ---------------- locale_get_display_language: 2, 1 locale_get_display_name: 2, 1 locale_get_display_region: 2, 1 locale_get_display_script: 2, 1 locale_get_display_variant: 2, 1 locale_filter_matches: 3, 2 locale_lookup: 4, 2 Actual result: -------------- locale_get_display_language: 2, 2 locale_get_display_name: 2, 2 locale_get_display_region: 2, 2 locale_get_display_script: 2, 2 locale_get_display_variant: 2, 2 locale_filter_matches: 3, 3 locale_lookup: 4, 4