Doc #74953 [Asn->Csd]: Locale::getDisplayName has inconsistent 2nd argument

From: Date: Fri, 09 Mar 2018 12:54:31 +0000
Subject: Doc #74953 [Asn->Csd]: Locale::getDisplayName has inconsistent 2nd argument
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15507@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: Assigned +Status: Closed Type: Documentation Problem Package: I18N and L10N related Operating System: 3v4l.org PHP Version: 7.2.0alpha3 Assigned To: cmb Block user comment: N Private report: N 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: ------------------------------------------------------------------------ [2018-03-09 12:53:39] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&revision=344473 Log: Fix bug #74953: Locale::getDisplayName has inconsistent 2nd argument -- Provided by anonymous 88937 (carusogabriel34@gmail.com) ------------------------------------------------------------------------ [2018-03-09 12:52:57] cmb@php.net Indeed, a documentation issue. ------------------------------------------------------------------------ [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

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