mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
correct handling/generating of php_mbstr_default_identify_list
This commit is contained in:
parent
9e3517161e
commit
010e5e60ac
1 changed files with 10 additions and 3 deletions
|
@ -95,7 +95,7 @@ static const enum mbfl_no_encoding php_mbstr_default_identify_list[] = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_MBSTR_TW) & !defined(HAVE_MBSTR_JA)
|
#if defined(HAVE_MBSTR_TW) & !defined(HAVE_MBSTR_CN) & !defined(HAVE_MBSTR_JA)
|
||||||
static const enum mbfl_no_encoding php_mbstr_default_identify_list[] = {
|
static const enum mbfl_no_encoding php_mbstr_default_identify_list[] = {
|
||||||
mbfl_no_encoding_ascii,
|
mbfl_no_encoding_ascii,
|
||||||
mbfl_no_encoding_utf8,
|
mbfl_no_encoding_utf8,
|
||||||
|
@ -104,7 +104,7 @@ static const enum mbfl_no_encoding php_mbstr_default_identify_list[] = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_MBSTR_KR) & !defined(HAVE_MBSTR_JA)
|
#if defined(HAVE_MBSTR_KR) & !defined(HAVE_MBSTR_TW) & !defined(HAVE_MBSTR_CN) & !defined(HAVE_MBSTR_JA)
|
||||||
static const enum mbfl_no_encoding php_mbstr_default_identify_list[] = {
|
static const enum mbfl_no_encoding php_mbstr_default_identify_list[] = {
|
||||||
mbfl_no_encoding_ascii,
|
mbfl_no_encoding_ascii,
|
||||||
mbfl_no_encoding_utf8,
|
mbfl_no_encoding_utf8,
|
||||||
|
@ -113,7 +113,7 @@ static const enum mbfl_no_encoding php_mbstr_default_identify_list[] = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_MBSTR_RU) & !defined(HAVE_MBSTR_JA) & !defined(HAVE_MBSTR_TW) & !defined(HAVE_MBSTR_KR)
|
#if defined(HAVE_MBSTR_RU) & !defined(HAVE_MBSTR_KR) & !defined(HAVE_MBSTR_TW) & !defined(HAVE_MBSTR_CN) & !defined(HAVE_MBSTR_JA)
|
||||||
static const enum mbfl_no_encoding php_mbstr_default_identify_list[] = {
|
static const enum mbfl_no_encoding php_mbstr_default_identify_list[] = {
|
||||||
mbfl_no_encoding_ascii,
|
mbfl_no_encoding_ascii,
|
||||||
mbfl_no_encoding_utf8,
|
mbfl_no_encoding_utf8,
|
||||||
|
@ -123,6 +123,13 @@ static const enum mbfl_no_encoding php_mbstr_default_identify_list[] = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(HAVE_MBSTR_RU) & !defined(HAVE_MBSTR_KR) & !defined(HAVE_MBSTR_TW) & !defined(HAVE_MBSTR_CN) & !defined(HAVE_MBSTR_JA)
|
||||||
|
static const enum mbfl_no_encoding php_mbstr_default_identify_list[] = {
|
||||||
|
mbfl_no_encoding_ascii,
|
||||||
|
mbfl_no_encoding_utf8
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
static const int php_mbstr_default_identify_list_size = sizeof(php_mbstr_default_identify_list)/sizeof(enum mbfl_no_encoding);
|
static const int php_mbstr_default_identify_list_size = sizeof(php_mbstr_default_identify_list)/sizeof(enum mbfl_no_encoding);
|
||||||
|
|
||||||
static unsigned char third_and_rest_force_ref[] = { 3, BYREF_NONE, BYREF_NONE, BYREF_FORCE_REST };
|
static unsigned char third_and_rest_force_ref[] = { 3, BYREF_NONE, BYREF_NONE, BYREF_FORCE_REST };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue