PHP :: Doc Bug #74953 :: Locale::getDisplayName has inconsistent 2nd argument |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #74953 Locale::getDisplayName has inconsistent 2nd argument
Submitted: 2017-07-19 17:30 UTC Modified: 2018-03-09 12:54 UTC
Avg. Score:1.0 ± 0.0
Reproduced:0 of 2 (0.0%)
From: franssen dot roland at gmail dot com Assigned: cmb (profile)
Status: Closed Package: I18N and L10N related
PHP Version: 7.2.0alpha3 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: franssen dot roland at gmail dot com
New email:
PHP Version: OS:


 [2017-07-19 17:30 UTC] franssen dot roland at gmail dot com

getDisplayName($some, null) behaves different compared to getDisplayName($some)

> If is NULL then the default locale is used.

That is simply not true.


Related to maybe?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-09-20 19:51 UTC] 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,


>> Output: "Nederlands (Nederland)"
 [2018-03-09 12:52 UTC]
-Type: Bug +Type: Documentation Problem -Assigned To: +Assigned To: cmb
 [2018-03-09 12:52 UTC]
Indeed, a documentation issue.
 [2018-03-09 12:53 UTC]
Automatic comment from SVN on behalf of cmb
Log: Fix bug #74953: Locale::getDisplayName has inconsistent 2nd argument

Provided by anonymous 88937 (
 [2018-03-09 12:54 UTC]
-Status: Assigned +Status: Closed
 [2018-03-09 12:54 UTC]
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.
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Wed Aug 15 04:01:25 2018 UTC