Bug->Doc #74953 [Opn]: Locale::getDisplayName has inconsistent 2nd argument
| From: | cmb@php.net | Date: | Fri, 09 Mar 2018 12:52:58 +0000 |
| Subject: | Bug->Doc #74953 [Opn]: Locale::getDisplayName has inconsistent 2nd argument | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15506@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74953&edit=1
ID: 74953
Updated by: cmb@php.net
Reported by: franssen dot roland at gmail dot com
Summary: Locale::getDisplayName has inconsistent 2nd argument
Status: Open
-Type: Bug
+Type: Documentation Problem
Package: I18N and L10N related
Operating System: 3v4l.org
PHP Version: 7.2.0alpha3
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Indeed, a documentation issue.
Previous Comments:
------------------------------------------------------------------------
[2017-09-20 19:51:33] hsn at outlook dot hu
> Returns an appropriately localized display name for the input locale. If is NULL then the
> default locale is used.
if is null refers to the $local variable,
var_dump(\Locale::getDisplayName(null));
>> Output: "Nederlands (Nederland)"
------------------------------------------------------------------------
[2017-07-19 17:30:54] franssen dot roland at gmail dot com
Description:
------------
Basically https://3v4l.org/mIf1N
getDisplayName($some, null) behaves different compared to getDisplayName($some)
> http://php.net/manual/en/locale.getdisplayname.php
> If is NULL then the default locale is used.
That is simply not true.
Thanks!
Related to https://bugs.php.net/bug.php?id=74439
maybe?
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74953&edit=1