Bug #74953 [Com]: Locale::getDisplayName has inconsistent 2nd argument

From: Date: Wed, 20 Sep 2017 19:51:35 +0000
Subject: Bug #74953 [Com]: Locale::getDisplayName has inconsistent 2nd argument
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211277@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 Comment by: hsn at outlook dot hu Reported by: franssen dot roland at gmail dot com Summary: Locale::getDisplayName has inconsistent 2nd argument Status: Open Type: Bug Package: I18N and L10N related Operating System: 3v4l.org PHP Version: 7.2.0alpha3 Block user comment: N Private report: N New Comment: > 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)" Previous Comments: ------------------------------------------------------------------------ [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.bugs (#211277) next »