|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-06-16 19:04 UTC] a dot schilder at gmx dot net
Description:
------------
If no valid locale can be found, the default value is not returned.
Reproduce code:
---------------
<?php
echo Locale::lookup(array('it_IT'), 'de_DE', 'en_UK');
?>
Expected result:
----------------
en_UK
Actual result:
--------------
(nothing)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 17:00:01 2025 UTC |
Sorry, docs are wrong - it should be: echo Locale::lookup(array('it_IT'), 'de_DE', false, 'en_UK'); (one param is missing). I will fix the docs.