php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69559 mb_language() default is "neutral", and the possible languages are more broad
Submitted: 2015-05-01 17:28 UTC Modified: 2017-01-28 12:55 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: bishop@php.net Assigned:
Status: Open Package: mbstring related
PHP Version: 5.6.8 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-05-01 17:28 UTC] bishop@php.net
Description:
------------
---
From manual page: http://www.php.net/function.mb-language
---

By default, mb_language returns "neutral", per:
https://github.com/php/php-src/blob/PHP-5.6.8/ext/mbstring/mbstring.c#L1473

Further, the list of possible languages are:
German
English
Armenian
Japanese
Korean
neutral
Russian
Turkish
Ukrainian
uni
Simplified Chinese
Traditional Chinese

As found in the C files from:
https://github.com/php/php-src/tree/PHP-5.6.8/ext/mbstring/libmbfl/nls


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-01 17:33 UTC] bishop@php.net
And, actually, there are aliases that are valid too:
Deutsch
universal
 [2017-01-28 12:55 UTC] cmb@php.net
-Package: Documentation problem +Package: mbstring related
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 18:01:25 2019 UTC