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: 2020-11-03 17:39 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: cmb (profile)
Status: Closed Package: mbstring related
PHP Version: 5.6.8 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bishop@php.net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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
 [2020-11-03 17:39 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2020-11-03 17:42 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=3e6615fced0073cd66023d92b722ca56142a0f89
Log: Fix #69559: mb_language() default is "neutral", and the possible languages are more broad
 [2020-11-03 17:42 UTC] phpdocbot@php.net
-Status: Verified +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC