mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
Added neutral language spec for backwards compatibility
This commit is contained in:
parent
be5e379ec6
commit
268903ce6c
@ -129,7 +129,17 @@
|
||||
#include "unicode_table.h"
|
||||
|
||||
/* language structure */
|
||||
static const char *mbfl_language_uni_aliases[] = {"universal", "none", NULL};
|
||||
static const mbfl_language mbfl_language_neutral = {
|
||||
mbfl_no_language_neutral,
|
||||
"neutral",
|
||||
"neutral",
|
||||
NULL,
|
||||
mbfl_no_encoding_utf8,
|
||||
mbfl_no_encoding_base64,
|
||||
mbfl_no_encoding_base64
|
||||
};
|
||||
|
||||
static const char *mbfl_language_uni_aliases[] = {"universal", NULL};
|
||||
|
||||
static const mbfl_language mbfl_language_uni = {
|
||||
mbfl_no_language_uni,
|
||||
|
@ -94,6 +94,7 @@
|
||||
|
||||
enum mbfl_no_language {
|
||||
mbfl_no_language_invalid = -1,
|
||||
mbfl_no_language_neutral,
|
||||
mbfl_no_language_uni,
|
||||
mbfl_no_language_min,
|
||||
mbfl_no_language_catalan, /* ca */
|
||||
|
@ -721,7 +721,7 @@ static PHP_INI_MH(OnUpdate_mbstring_encoding_translation)
|
||||
|
||||
/* {{{ php.ini directive registration */
|
||||
PHP_INI_BEGIN()
|
||||
PHP_INI_ENTRY("mbstring.language", "none", PHP_INI_SYSTEM | PHP_INI_PERDIR, OnUpdate_mbstring_language)
|
||||
PHP_INI_ENTRY("mbstring.language", "neutral", PHP_INI_SYSTEM | PHP_INI_PERDIR, OnUpdate_mbstring_language)
|
||||
PHP_INI_ENTRY("mbstring.detect_order", NULL, PHP_INI_ALL, OnUpdate_mbstring_detect_order)
|
||||
PHP_INI_ENTRY("mbstring.http_input", "pass", PHP_INI_ALL, OnUpdate_mbstring_http_input)
|
||||
PHP_INI_ENTRY("mbstring.http_output", "pass", PHP_INI_ALL, OnUpdate_mbstring_http_output)
|
||||
|
Loading…
Reference in New Issue
Block a user