[php-src] Issue #8656: locale_get_display_name no longer translates in the locale specified by the 2nd parameter

From: Date: Mon, 30 May 2022 10:24:04 +0000
Subject: [php-src] Issue #8656: locale_get_display_name no longer translates in the locale specified by the 2nd parameter
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241624@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8656 Author: gdejong ### Description The following code: ```php <?php echo locale_get_display_name('ja', 'ja'); ``` \* with the intl extension installed (https://www.php.net/manual/en/locale.getdisplayname.php) Resulted in this output: ``` Japanese ``` But I expected this output instead: ``` 日本語 ``` This happens on PHP 8.1.6 while on 8.1.5 the correct output (translated in the locale specified by the second argument) gets returned. ### PHP Version PHP 8.1.6 ### Operating System _No response_

« previous php.bugs (#241624) next »