#48572 [Asn->Csd]: Locale::lookup doesn't return default value

From: Date: Thu, 02 Jul 2009 00:44:24 +0000
Subject: #48572 [Asn->Csd]: Locale::lookup doesn't return default value
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2446@lists.php.net to get a copy of this message
ID: 48572 Updated by: stas@php.net Reported By: a dot schilder at gmx dot net -Status: Assigned +Status: Closed Bug Type: Documentation problem Operating System: Windows XP PHP Version: 5.3.0RC3 Assigned To: stas New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2009-07-01 22:18:48] stas@php.net 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. ------------------------------------------------------------------------ [2009-06-16 19:04:18] 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) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48572&edit=1

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