Lines Matching refs:MBSTRG
676 identify_list = MBSTRG(default_detect_order_list); in php_mb_parse_encoding_list()
677 identify_list_size = MBSTRG(default_detect_order_list_size); in php_mb_parse_encoding_list()
800 identify_list = MBSTRG(default_detect_order_list); in php_mb_parse_encoding_array()
801 identify_list_size = MBSTRG(default_detect_order_list_size); in php_mb_parse_encoding_array()
971 MBSTRG(language) = mbfl_no_language_neutral; in PHP_INI_MH()
974 MBSTRG(language) = no_language; in PHP_INI_MH()
975 …php_mb_nls_get_default_detect_order_list(no_language, &MBSTRG(default_detect_order_list), &MBSTRG(… in PHP_INI_MH()
987 if (MBSTRG(detect_order_list)) { in PHP_INI_MH()
988 free(MBSTRG(detect_order_list)); in PHP_INI_MH()
990 MBSTRG(detect_order_list) = list; in PHP_INI_MH()
991 MBSTRG(detect_order_list_size) = size; in PHP_INI_MH()
993 if (MBSTRG(detect_order_list)) { in PHP_INI_MH()
994 free(MBSTRG(detect_order_list)); in PHP_INI_MH()
995 MBSTRG(detect_order_list) = NULL; in PHP_INI_MH()
1011 if (MBSTRG(http_input_list)) { in PHP_INI_MH()
1012 free(MBSTRG(http_input_list)); in PHP_INI_MH()
1014 MBSTRG(http_input_list) = list; in PHP_INI_MH()
1015 MBSTRG(http_input_list_size) = size; in PHP_INI_MH()
1017 if (MBSTRG(http_input_list)) { in PHP_INI_MH()
1018 free(MBSTRG(http_input_list)); in PHP_INI_MH()
1019 MBSTRG(http_input_list) = NULL; in PHP_INI_MH()
1021 MBSTRG(http_input_list_size) = 0; in PHP_INI_MH()
1036 MBSTRG(http_output_encoding) = no_encoding; in PHP_INI_MH()
1037 MBSTRG(current_http_output_encoding) = no_encoding; in PHP_INI_MH()
1039 MBSTRG(http_output_encoding) = mbfl_no_encoding_pass; in PHP_INI_MH()
1040 MBSTRG(current_http_output_encoding) = mbfl_no_encoding_pass; in PHP_INI_MH()
1063 switch (MBSTRG(language)) { in _php_mb_ini_mbstring_internal_encoding_set()
1107 MBSTRG(internal_encoding) = no_encoding; in _php_mb_ini_mbstring_internal_encoding_set()
1108 MBSTRG(current_internal_encoding) = no_encoding; in _php_mb_ini_mbstring_internal_encoding_set()
1149 if (MBSTRG(script_encoding_list) != NULL) { in PHP_INI_MH()
1150 free(MBSTRG(script_encoding_list)); in PHP_INI_MH()
1152 MBSTRG(script_encoding_list) = list; in PHP_INI_MH()
1153 MBSTRG(script_encoding_list_size) = size; in PHP_INI_MH()
1155 if (MBSTRG(script_encoding_list) != NULL) { in PHP_INI_MH()
1156 free(MBSTRG(script_encoding_list)); in PHP_INI_MH()
1158 MBSTRG(script_encoding_list) = NULL; in PHP_INI_MH()
1159 MBSTRG(script_encoding_list_size) = 0; in PHP_INI_MH()
1176 MBSTRG(filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE; in PHP_INI_MH()
1177 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE; in PHP_INI_MH()
1179 MBSTRG(filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_LONG; in PHP_INI_MH()
1180 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_LONG; in PHP_INI_MH()
1182 MBSTRG(filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_ENTITY; in PHP_INI_MH()
1183 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_ENTITY; in PHP_INI_MH()
1185 MBSTRG(filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR; in PHP_INI_MH()
1186 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR; in PHP_INI_MH()
1190 MBSTRG(filter_illegal_substchar) = c; in PHP_INI_MH()
1191 MBSTRG(current_filter_illegal_substchar) = c; in PHP_INI_MH()
1196 MBSTRG(filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR; in PHP_INI_MH()
1197 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR; in PHP_INI_MH()
1198 MBSTRG(filter_illegal_substchar) = 0x3f; /* '?' */ in PHP_INI_MH()
1199 MBSTRG(current_filter_illegal_substchar) = 0x3f; /* '?' */ in PHP_INI_MH()
1215 if (MBSTRG(encoding_translation)) { in PHP_INI_MH()
1246 if (MBSTRG(http_output_conv_mimetypes)) { in PHP_INI_MH()
1247 _php_mb_free_regex(MBSTRG(http_output_conv_mimetypes)); in PHP_INI_MH()
1250 MBSTRG(http_output_conv_mimetypes) = re; in PHP_INI_MH()
1363 if (MBSTRG(encoding_translation)) { in PHP_MINIT_FUNCTION()
1403 MBSTRG(current_internal_encoding) = MBSTRG(internal_encoding); in PHP_RINIT_FUNCTION()
1404 MBSTRG(current_http_output_encoding) = MBSTRG(http_output_encoding); in PHP_RINIT_FUNCTION()
1405 MBSTRG(current_filter_illegal_mode) = MBSTRG(filter_illegal_mode); in PHP_RINIT_FUNCTION()
1406 MBSTRG(current_filter_illegal_substchar) = MBSTRG(filter_illegal_substchar); in PHP_RINIT_FUNCTION()
1408 MBSTRG(illegalchars) = 0; in PHP_RINIT_FUNCTION()
1411 if (MBSTRG(detect_order_list)) { in PHP_RINIT_FUNCTION()
1412 list = MBSTRG(detect_order_list); in PHP_RINIT_FUNCTION()
1413 n = MBSTRG(detect_order_list_size); in PHP_RINIT_FUNCTION()
1416 list = MBSTRG(default_detect_order_list); in PHP_RINIT_FUNCTION()
1417 n = MBSTRG(default_detect_order_list_size); in PHP_RINIT_FUNCTION()
1420 MBSTRG(current_detect_order_list) = entry; in PHP_RINIT_FUNCTION()
1421 MBSTRG(current_detect_order_list_size) = n; in PHP_RINIT_FUNCTION()
1428 if (MBSTRG(func_overload)){ in PHP_RINIT_FUNCTION()
1432 if ((MBSTRG(func_overload) & p->type) == p->type && in PHP_RINIT_FUNCTION()
1458 zend_multibyte_set_internal_encoding(mbfl_no_encoding2name(MBSTRG(internal_encoding)) TSRMLS_CC); in PHP_RINIT_FUNCTION()
1472 if (MBSTRG(current_detect_order_list) != NULL) { in PHP_RSHUTDOWN_FUNCTION()
1473 efree(MBSTRG(current_detect_order_list)); in PHP_RSHUTDOWN_FUNCTION()
1474 MBSTRG(current_detect_order_list) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1475 MBSTRG(current_detect_order_list_size) = 0; in PHP_RSHUTDOWN_FUNCTION()
1477 if (MBSTRG(outconv) != NULL) { in PHP_RSHUTDOWN_FUNCTION()
1478 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(MBSTRG(outconv)); in PHP_RSHUTDOWN_FUNCTION()
1479 mbfl_buffer_converter_delete(MBSTRG(outconv)); in PHP_RSHUTDOWN_FUNCTION()
1480 MBSTRG(outconv) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1484 MBSTRG(http_input_identify) = mbfl_no_encoding_invalid; in PHP_RSHUTDOWN_FUNCTION()
1485 MBSTRG(http_input_identify_post) = mbfl_no_encoding_invalid; in PHP_RSHUTDOWN_FUNCTION()
1486 MBSTRG(http_input_identify_get) = mbfl_no_encoding_invalid; in PHP_RSHUTDOWN_FUNCTION()
1487 MBSTRG(http_input_identify_cookie) = mbfl_no_encoding_invalid; in PHP_RSHUTDOWN_FUNCTION()
1488 MBSTRG(http_input_identify_string) = mbfl_no_encoding_invalid; in PHP_RSHUTDOWN_FUNCTION()
1491 if (MBSTRG(func_overload)){ in PHP_RSHUTDOWN_FUNCTION()
1494 if ((MBSTRG(func_overload) & p->type) == p->type && in PHP_RSHUTDOWN_FUNCTION()
1519 …php_info_print_table_row(2, "HTTP input encoding translation", MBSTRG(encoding_translation) ? "ena… in PHP_MINFO_FUNCTION()
1545 RETVAL_STRING((char *)mbfl_no_language2name(MBSTRG(language)), 1); in PHP_FUNCTION()
1571 name = (char *)mbfl_no_encoding2name(MBSTRG(current_internal_encoding)); in PHP_FUNCTION()
1583 MBSTRG(current_internal_encoding) = no_encoding; in PHP_FUNCTION()
1586 if (MBSTRG(encoding_translation)) { in PHP_FUNCTION()
1612 result = MBSTRG(http_input_identify); in PHP_FUNCTION()
1617 result = MBSTRG(http_input_identify_get); in PHP_FUNCTION()
1621 result = MBSTRG(http_input_identify_post); in PHP_FUNCTION()
1625 result = MBSTRG(http_input_identify_cookie); in PHP_FUNCTION()
1629 result = MBSTRG(http_input_identify_string); in PHP_FUNCTION()
1634 entry = MBSTRG(http_input_list); in PHP_FUNCTION()
1635 n = MBSTRG(http_input_list_size); in PHP_FUNCTION()
1648 entry = MBSTRG(http_input_list); in PHP_FUNCTION()
1649 n = MBSTRG(http_input_list_size); in PHP_FUNCTION()
1675 result = MBSTRG(http_input_identify); in PHP_FUNCTION()
1704 name = (char *)mbfl_no_encoding2name(MBSTRG(current_http_output_encoding)); in PHP_FUNCTION()
1716 MBSTRG(current_http_output_encoding) = no_encoding; in PHP_FUNCTION()
1738 entry = MBSTRG(current_detect_order_list); in PHP_FUNCTION()
1739 n = MBSTRG(current_detect_order_list_size); in PHP_FUNCTION()
1775 if (MBSTRG(current_detect_order_list)) { in PHP_FUNCTION()
1776 efree(MBSTRG(current_detect_order_list)); in PHP_FUNCTION()
1778 MBSTRG(current_detect_order_list) = list; in PHP_FUNCTION()
1779 MBSTRG(current_detect_order_list_size) = size; in PHP_FUNCTION()
1796 if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE) { in PHP_FUNCTION()
1798 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_LONG) { in PHP_FUNCTION()
1800 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_ENTITY) { in PHP_FUNCTION()
1803 RETURN_LONG(MBSTRG(current_filter_illegal_substchar)); in PHP_FUNCTION()
1811 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE; in PHP_FUNCTION()
1813 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_LONG; in PHP_FUNCTION()
1815 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_ENTITY; in PHP_FUNCTION()
1820 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR; in PHP_FUNCTION()
1821 MBSTRG(current_filter_illegal_substchar) = Z_LVAL_PP(arg1); in PHP_FUNCTION()
1831 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR; in PHP_FUNCTION()
1832 MBSTRG(current_filter_illegal_substchar) = Z_LVAL_PP(arg1); in PHP_FUNCTION()
1901 info.to_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
1902 info.to_language = MBSTRG(language); in PHP_FUNCTION()
1903 info.from_encodings = MBSTRG(http_input_list); in PHP_FUNCTION()
1904 info.num_from_encodings = MBSTRG(http_input_list_size); in PHP_FUNCTION()
1905 info.from_language = MBSTRG(language); in PHP_FUNCTION()
1909 MBSTRG(http_input_identify) = detected; in PHP_FUNCTION()
1936 encoding = MBSTRG(current_http_output_encoding); in PHP_FUNCTION()
1941 if (MBSTRG(outconv)) { in PHP_FUNCTION()
1942 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(MBSTRG(outconv)); in PHP_FUNCTION()
1943 mbfl_buffer_converter_delete(MBSTRG(outconv)); in PHP_FUNCTION()
1944 MBSTRG(outconv) = NULL; in PHP_FUNCTION()
1953 MBSTRG(http_output_conv_mimetypes), in PHP_FUNCTION()
1976 MBSTRG(outconv) = mbfl_buffer_converter_new(MBSTRG(current_internal_encoding), encoding, 0); in PHP_FUNCTION()
1984 if (MBSTRG(outconv) == NULL) { in PHP_FUNCTION()
1991 mbfl_buffer_converter_illegal_mode(MBSTRG(outconv), MBSTRG(current_filter_illegal_mode)); in PHP_FUNCTION()
1992 …mbfl_buffer_converter_illegal_substchar(MBSTRG(outconv), MBSTRG(current_filter_illegal_substchar)); in PHP_FUNCTION()
1996 string.no_language = MBSTRG(language); in PHP_FUNCTION()
1997 string.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2000 mbfl_buffer_converter_feed(MBSTRG(outconv), &string); in PHP_FUNCTION()
2002 mbfl_buffer_converter_flush(MBSTRG(outconv)); in PHP_FUNCTION()
2005 mbfl_buffer_converter_result(MBSTRG(outconv), &result); in PHP_FUNCTION()
2010 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(MBSTRG(outconv)); in PHP_FUNCTION()
2011 mbfl_buffer_converter_delete(MBSTRG(outconv)); in PHP_FUNCTION()
2012 MBSTRG(outconv) = NULL; in PHP_FUNCTION()
2032 string.no_language = MBSTRG(language); in PHP_FUNCTION()
2034 string.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2064 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2065 haystack.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2066 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2067 needle.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2131 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2132 haystack.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2133 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2134 needle.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2221 char *from_encoding = (char*)mbfl_no2preferred_mime_name(MBSTRG(current_internal_encoding)); in PHP_FUNCTION()
2250 const char *from_encoding = mbfl_no2preferred_mime_name(MBSTRG(current_internal_encoding)); in PHP_FUNCTION()
2281 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2282 haystack.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2283 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2284 needle.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2339 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2340 haystack.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2341 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2342 needle.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2395 const char *from_encoding = mbfl_no2preferred_mime_name(MBSTRG(current_internal_encoding)); in PHP_FUNCTION()
2398 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2399 haystack.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2400 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2401 needle.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2453 char *from_encoding = (char*)mbfl_no2preferred_mime_name(MBSTRG(current_internal_encoding)); in PHP_FUNCTION()
2456 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2457 haystack.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2458 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2459 needle.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2510 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2511 haystack.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2512 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2513 needle.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2556 string.no_language = MBSTRG(language); in PHP_FUNCTION()
2557 string.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2600 if (((MBSTRG(func_overload) & MB_OVERLOAD_STRING) == MB_OVERLOAD_STRING) in PHP_FUNCTION()
2625 string.no_language = MBSTRG(language); in PHP_FUNCTION()
2626 string.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2688 string.no_language = MBSTRG(language); in PHP_FUNCTION()
2689 string.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2727 string.no_language = MBSTRG(language); in PHP_FUNCTION()
2728 string.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2729 marker.no_language = MBSTRG(language); in PHP_FUNCTION()
2730 marker.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2793 to_encoding = MBSTRG(current_internal_encoding); in php_mb_convert_encoding()
2799 from_encoding = MBSTRG(current_internal_encoding); in php_mb_convert_encoding()
2801 string.no_language = MBSTRG(language); in php_mb_convert_encoding()
2815 from_encoding = mbfl_identify_encoding_no(&string, list, size, MBSTRG(strict_detection)); in php_mb_convert_encoding()
2838 mbfl_buffer_converter_illegal_mode(convd, MBSTRG(current_filter_illegal_mode)); in php_mb_convert_encoding()
2839 mbfl_buffer_converter_illegal_substchar(convd, MBSTRG(current_filter_illegal_substchar)); in php_mb_convert_encoding()
2850 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(convd); in php_mb_convert_encoding()
2934 char *str, *from_encoding = (char*)mbfl_no2preferred_mime_name(MBSTRG(current_internal_encoding)); in PHP_FUNCTION()
2958 char *str, *from_encoding = (char*)mbfl_no2preferred_mime_name(MBSTRG(current_internal_encoding)); in PHP_FUNCTION()
2981 char *str, *from_encoding = (char*)mbfl_no2preferred_mime_name(MBSTRG(current_internal_encoding)); in PHP_FUNCTION()
3048 strict = (zend_bool)MBSTRG(strict_detection); in PHP_FUNCTION()
3054 elist = MBSTRG(current_detect_order_list); in PHP_FUNCTION()
3055 size = MBSTRG(current_detect_order_list_size); in PHP_FUNCTION()
3059 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3136 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3137 string.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
3153 const mbfl_language *lang = mbfl_no2language(MBSTRG(language)); in PHP_FUNCTION()
3185 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3186 string.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
3193 ret = mbfl_mime_header_decode(&string, &result, MBSTRG(current_internal_encoding)); in PHP_FUNCTION()
3214 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3215 string.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
3337 from_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
3339 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3363 identd = mbfl_encoding_detector_new(elist, elistsz, MBSTRG(strict_detection)); in PHP_FUNCTION()
3437 mbfl_buffer_converter_illegal_mode(convd, MBSTRG(current_filter_illegal_mode)); in PHP_FUNCTION()
3438 mbfl_buffer_converter_illegal_substchar(convd, MBSTRG(current_filter_illegal_substchar)); in PHP_FUNCTION()
3508 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(convd); in PHP_FUNCTION()
3542 string.no_language = MBSTRG(language); in php_mb_numericentity_exec()
3543 string.no_encoding = MBSTRG(current_internal_encoding); in php_mb_numericentity_exec()
3880 lang = mbfl_no2language(MBSTRG(language)); in PHP_FUNCTION()
3998 orig_str.no_language = MBSTRG(language); in PHP_FUNCTION()
4001 orig_str.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
4004 …bfl_identify_encoding_no(&orig_str, MBSTRG(current_detect_order_list), MBSTRG(current_detect_order… in PHP_FUNCTION()
4017 orig_str.no_language = MBSTRG(language); in PHP_FUNCTION()
4020 orig_str.no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
4024 …bfl_identify_encoding_no(&orig_str, MBSTRG(current_detect_order_list), MBSTRG(current_detect_order… in PHP_FUNCTION()
4136 const mbfl_language *lang = mbfl_no2language(MBSTRG(language)); in PHP_FUNCTION()
4148 if ((name = (char *)mbfl_no_encoding2name(MBSTRG(current_internal_encoding))) != NULL) { in PHP_FUNCTION()
4151 if ((name = (char *)mbfl_no_encoding2name(MBSTRG(http_input_identify))) != NULL) { in PHP_FUNCTION()
4154 if ((name = (char *)mbfl_no_encoding2name(MBSTRG(current_http_output_encoding))) != NULL) { in PHP_FUNCTION()
4160 add_assoc_long(return_value, "func_overload", MBSTRG(func_overload)); in PHP_FUNCTION()
4161 if (MBSTRG(func_overload)){ in PHP_FUNCTION()
4166 if ((MBSTRG(func_overload) & over_func->type) == over_func->type ) { in PHP_FUNCTION()
4186 add_assoc_long(return_value, "illegal_chars", MBSTRG(illegalchars)); in PHP_FUNCTION()
4187 if (MBSTRG(encoding_translation)) { in PHP_FUNCTION()
4192 if ((name = (char *)mbfl_no_language2name(MBSTRG(language))) != NULL) { in PHP_FUNCTION()
4195 n = MBSTRG(current_detect_order_list_size); in PHP_FUNCTION()
4196 entry = MBSTRG(current_detect_order_list); in PHP_FUNCTION()
4209 if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE) { in PHP_FUNCTION()
4211 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_LONG) { in PHP_FUNCTION()
4213 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_ENTITY) { in PHP_FUNCTION()
4216 add_assoc_long(return_value, "substitute_character", MBSTRG(current_filter_illegal_substchar)); in PHP_FUNCTION()
4218 if (MBSTRG(strict_detection)) { in PHP_FUNCTION()
4224 entry = MBSTRG(script_encoding_list); in PHP_FUNCTION()
4225 n = MBSTRG(script_encoding_list_size); in PHP_FUNCTION()
4240 if ((name = (char *)mbfl_no_encoding2name(MBSTRG(current_internal_encoding))) != NULL) { in PHP_FUNCTION()
4244 if ((name = (char *)mbfl_no_encoding2name(MBSTRG(http_input_identify))) != NULL) { in PHP_FUNCTION()
4248 if ((name = (char *)mbfl_no_encoding2name(MBSTRG(current_http_output_encoding))) != NULL) { in PHP_FUNCTION()
4256 RETVAL_LONG(MBSTRG(func_overload)); in PHP_FUNCTION()
4258 if (MBSTRG(func_overload)){ in PHP_FUNCTION()
4262 if ((MBSTRG(func_overload) & over_func->type) == over_func->type ) { in PHP_FUNCTION()
4283 RETVAL_LONG(MBSTRG(illegalchars)); in PHP_FUNCTION()
4285 if (MBSTRG(encoding_translation)) { in PHP_FUNCTION()
4291 if ((name = (char *)mbfl_no_language2name(MBSTRG(language))) != NULL) { in PHP_FUNCTION()
4295 n = MBSTRG(current_detect_order_list_size); in PHP_FUNCTION()
4296 entry = MBSTRG(current_detect_order_list); in PHP_FUNCTION()
4309 if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE) { in PHP_FUNCTION()
4311 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_LONG) { in PHP_FUNCTION()
4313 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_ENTITY) { in PHP_FUNCTION()
4316 RETVAL_LONG(MBSTRG(current_filter_illegal_substchar)); in PHP_FUNCTION()
4319 if (MBSTRG(strict_detection)) { in PHP_FUNCTION()
4327 entry = MBSTRG(script_encoding_list); in PHP_FUNCTION()
4328 n = MBSTRG(script_encoding_list_size); in PHP_FUNCTION()
4357 enum mbfl_no_encoding no_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
4366 RETURN_BOOL(MBSTRG(illegalchars) == 0); in PHP_FUNCTION()
4408 return MBSTRG(encoding_translation); in php_mb_encoding_translation()
4434 mbfl_no2encoding(MBSTRG(internal_encoding))); in php_mb_mbchar_bytes()
4483 mbfl_no2encoding(MBSTRG(internal_encoding))); in php_mb_safe_strrchr()
4498 if (MBSTRG(http_input_identify) != mbfl_no_encoding_invalid){ in php_mb_gpc_mbchar_bytes()
4500 mbfl_no2encoding(MBSTRG(http_input_identify))); in php_mb_gpc_mbchar_bytes()
4503 mbfl_no2encoding(MBSTRG(internal_encoding))); in php_mb_gpc_mbchar_bytes()
4523 to_encoding = MBSTRG(current_internal_encoding); in php_mb_gpc_encoding_converter()
4532 from_encoding = MBSTRG(http_input_identify); in php_mb_gpc_encoding_converter()
4543 string.no_language = MBSTRG(language); in php_mb_gpc_encoding_converter()
4554 mbfl_buffer_converter_illegal_mode(convd, MBSTRG(current_filter_illegal_mode)); in php_mb_gpc_encoding_converter()
4555 mbfl_buffer_converter_illegal_substchar(convd, MBSTRG(current_filter_illegal_substchar)); in php_mb_gpc_encoding_converter()
4565 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(convd); in php_mb_gpc_encoding_converter()
4585 if (MBSTRG(http_input_list_size) == 1 && in php_mb_gpc_encoding_detector()
4586 MBSTRG(http_input_list)[0] == mbfl_no_encoding_pass) { in php_mb_gpc_encoding_detector()
4587 MBSTRG(http_input_identify) = mbfl_no_encoding_pass; in php_mb_gpc_encoding_detector()
4591 if (MBSTRG(http_input_list_size) == 1 && in php_mb_gpc_encoding_detector()
4592 MBSTRG(http_input_list)[0] != mbfl_no_encoding_auto && in php_mb_gpc_encoding_detector()
4593 mbfl_no_encoding2name(MBSTRG(http_input_list)[0]) != NULL) { in php_mb_gpc_encoding_detector()
4594 MBSTRG(http_input_identify) = MBSTRG(http_input_list)[0]; in php_mb_gpc_encoding_detector()
4607 elist = MBSTRG(current_detect_order_list); in php_mb_gpc_encoding_detector()
4608 size = MBSTRG(current_detect_order_list_size); in php_mb_gpc_encoding_detector()
4610 elist = MBSTRG(default_detect_order_list); in php_mb_gpc_encoding_detector()
4611 size = MBSTRG(default_detect_order_list_size); in php_mb_gpc_encoding_detector()
4615 elist = MBSTRG(current_detect_order_list); in php_mb_gpc_encoding_detector()
4616 size = MBSTRG(current_detect_order_list_size); in php_mb_gpc_encoding_detector()
4618 elist = MBSTRG(default_detect_order_list); in php_mb_gpc_encoding_detector()
4619 size = MBSTRG(default_detect_order_list_size); in php_mb_gpc_encoding_detector()
4624 string.no_language = MBSTRG(language); in php_mb_gpc_encoding_detector()
4626 identd = mbfl_encoding_detector_new(elist, size, MBSTRG(strict_detection)); in php_mb_gpc_encoding_detector()
4643 MBSTRG(http_input_identify) = encoding; in php_mb_gpc_encoding_detector()
4661 haystack.no_language = MBSTRG(language); in php_mb_stripos()
4662 haystack.no_encoding = MBSTRG(current_internal_encoding); in php_mb_stripos()
4663 needle.no_language = MBSTRG(language); in php_mb_stripos()
4664 needle.no_encoding = MBSTRG(current_internal_encoding); in php_mb_stripos()
4740 entry = MBSTRG(script_encoding_list); in php_mb_set_zend_encoding()
4741 n = MBSTRG(script_encoding_list_size); in php_mb_set_zend_encoding()
4767 if (MBSTRG(encoding_translation)) { in php_mb_set_zend_encoding()
4769 name = (char*)mbfl_no_encoding2name(MBSTRG(current_internal_encoding)); in php_mb_set_zend_encoding()
4799 elist = MBSTRG(current_detect_order_list); in php_mb_encoding_detector()
4800 size = MBSTRG(current_detect_order_list_size); in php_mb_encoding_detector()
4804 string.no_language = MBSTRG(language); in php_mb_encoding_detector()
4840 string.no_language = MBSTRG(language); in php_mb_encoding_converter()
4849 mbfl_buffer_converter_illegal_mode(convd, MBSTRG(current_filter_illegal_mode)); in php_mb_encoding_converter()
4850 mbfl_buffer_converter_illegal_substchar(convd, MBSTRG(current_filter_illegal_substchar)); in php_mb_encoding_converter()
4859 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(convd); in php_mb_encoding_converter()
4875 mb_string.no_language = MBSTRG(language); in php_mb_oddlen()