|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-06-24 06:41 UTC] a dot schilder at gmx dot de
[2009-07-02 00:10 UTC] stas@php.net
[2009-07-02 00:44 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 02:00:01 2025 UTC |
Description: ------------ The documentation says that the return value of Locale::lookup is "The closest matching language tag or default value.", but the matching tag is modified. The result of the example below doesn't match the searched (en_US) nor the matched (en-us) tag, but is totally different (en_us). Reproduce code: --------------- <?php $languages = array("en", "en-us"); echo Locale::lookup($languages, 'en_US', 'en_UK'); ?> Expected result: ---------------- en-us Actual result: -------------- en_us