Doc #63883 [Opn->Csd]: Example in locale_lookup() function is misleading.

From: Date: Mon, 24 Feb 2014 23:21:55 +0000
Subject: Doc #63883 [Opn->Csd]: Example in locale_lookup() function is misleading.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11015@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63883&edit=1

 ID:                 63883
 User updated by:    cappytoi at yahoo dot com
 Reported by:        cappytoi at yahoo dot com
 Summary:            Example in locale_lookup() function is misleading.
-Status:             Open
+Status:             Closed
 Type:               Documentation Problem
 Package:            Documentation problem
 Operating System:   CENTOS
 PHP Version:        5.4.10
 Block user comment: N
 Private report:     N

 New Comment:

As of now this issue seems to be resolved.


Previous Comments:
------------------------------------------------------------------------
[2013-01-02 04:25:55] cappytoi at yahoo dot com

Description:
------------
---
From manual page: http://www.php.net/locale.lookup#refsect1-locale.lookup-examples
---

While the method signature is;
string locale_lookup ( array $langtag , string $locale [, bool $canonicalize = 
false [, string $default ]] )

Both examples states that:
echo locale_lookup($arr, 'de-DE-1996-x-prv1-prv2', 'en_US');

The writer forgot to add $canonicalize before $default




------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63883&edit=1


Thread (2 messages)

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