|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74953 Locale::getDisplayName has inconsistent 2nd argument
Submitted: 2017-07-19 17:30 UTC Modified: -
Avg. Score:1.0 ± 0.0
Reproduced:0 of 2 (0.0%)
From: franssen dot roland at gmail dot com Assigned:
Status: Open Package: I18N and L10N related
PHP Version: 7.2.0alpha3 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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)"
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC