Lines Matching refs:MBSTRG

743 		size = n + MBSTRG(default_detect_order_list_size);  in php_mb_parse_encoding_list()
768 const enum mbfl_no_encoding *src = MBSTRG(default_detect_order_list); in php_mb_parse_encoding_list()
769 const size_t identify_list_size = MBSTRG(default_detect_order_list_size); in php_mb_parse_encoding_list()
828 size = i + MBSTRG(default_detect_order_list_size); in php_mb_parse_encoding_array()
837 const enum mbfl_no_encoding *src = MBSTRG(default_detect_order_list); in php_mb_parse_encoding_array()
838 const size_t identify_list_size = MBSTRG(default_detect_order_list_size); in php_mb_parse_encoding_array()
908 list = (const zend_encoding **)MBSTRG(current_detect_order_list); in php_mb_zend_encoding_detector()
909 list_size = MBSTRG(current_detect_order_list_size); in php_mb_zend_encoding_detector()
913 string.no_language = MBSTRG(language); in php_mb_zend_encoding_detector()
930 string.no_language = MBSTRG(language); in php_mb_zend_encoding_converter()
940 mbfl_buffer_converter_illegal_mode(convd, MBSTRG(current_filter_illegal_mode)); in php_mb_zend_encoding_converter()
941 mbfl_buffer_converter_illegal_substchar(convd, MBSTRG(current_filter_illegal_substchar)); in php_mb_zend_encoding_converter()
971 return (const zend_encoding *)MBSTRG(internal_encoding); in php_mb_zend_internal_encoding_getter()
976 MBSTRG(internal_encoding) = (const mbfl_encoding *)encoding; in php_mb_zend_internal_encoding_setter()
1211 MBSTRG(language) = mbfl_no_language_neutral; in PHP_INI_MH()
1214 MBSTRG(language) = no_language; in PHP_INI_MH()
1215 …php_mb_nls_get_default_detect_order_list(no_language, &MBSTRG(default_detect_order_list), &MBSTRG(… in PHP_INI_MH()
1227 if (MBSTRG(detect_order_list)) { in PHP_INI_MH()
1228 pefree(MBSTRG(detect_order_list), 1); in PHP_INI_MH()
1230 MBSTRG(detect_order_list) = NULL; in PHP_INI_MH()
1231 MBSTRG(detect_order_list_size) = 0; in PHP_INI_MH()
1239 if (MBSTRG(detect_order_list)) { in PHP_INI_MH()
1240 pefree(MBSTRG(detect_order_list), 1); in PHP_INI_MH()
1242 MBSTRG(detect_order_list) = list; in PHP_INI_MH()
1243 MBSTRG(detect_order_list_size) = size; in PHP_INI_MH()
1255 if (MBSTRG(http_input_list)) { in PHP_INI_MH()
1256 pefree(MBSTRG(http_input_list), 1); in PHP_INI_MH()
1259 MBSTRG(http_input_list) = list; in PHP_INI_MH()
1260 MBSTRG(http_input_list_size) = size; in PHP_INI_MH()
1263 MBSTRG(http_input_list) = NULL; in PHP_INI_MH()
1264 MBSTRG(http_input_list_size) = 0; in PHP_INI_MH()
1272 if (MBSTRG(http_input_list)) { in PHP_INI_MH()
1273 pefree(MBSTRG(http_input_list), 1); in PHP_INI_MH()
1275 MBSTRG(http_input_list) = list; in PHP_INI_MH()
1276 MBSTRG(http_input_list_size) = size; in PHP_INI_MH()
1294 MBSTRG(http_output_encoding) = &mbfl_encoding_pass; in PHP_INI_MH()
1295 MBSTRG(current_http_output_encoding) = &mbfl_encoding_pass; in PHP_INI_MH()
1301 MBSTRG(http_output_encoding) = &mbfl_encoding_pass; in PHP_INI_MH()
1302 MBSTRG(current_http_output_encoding) = &mbfl_encoding_pass; in PHP_INI_MH()
1306 MBSTRG(http_output_encoding) = encoding; in PHP_INI_MH()
1307 MBSTRG(current_http_output_encoding) = encoding; in PHP_INI_MH()
1326 MBSTRG(internal_encoding) = encoding; in _php_mb_ini_mbstring_internal_encoding_set()
1327 MBSTRG(current_internal_encoding) = encoding; in _php_mb_ini_mbstring_internal_encoding_set()
1380 MBSTRG(filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE; in PHP_INI_MH()
1381 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE; in PHP_INI_MH()
1383 MBSTRG(filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_LONG; in PHP_INI_MH()
1384 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_LONG; in PHP_INI_MH()
1386 MBSTRG(filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_ENTITY; in PHP_INI_MH()
1387 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_ENTITY; in PHP_INI_MH()
1389 MBSTRG(filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR; in PHP_INI_MH()
1390 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR; in PHP_INI_MH()
1394 MBSTRG(filter_illegal_substchar) = c; in PHP_INI_MH()
1395 MBSTRG(current_filter_illegal_substchar) = c; in PHP_INI_MH()
1400 MBSTRG(filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR; in PHP_INI_MH()
1401 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR; in PHP_INI_MH()
1402 MBSTRG(filter_illegal_substchar) = 0x3f; /* '?' */ in PHP_INI_MH()
1403 MBSTRG(current_filter_illegal_substchar) = 0x3f; /* '?' */ in PHP_INI_MH()
1419 if (MBSTRG(encoding_translation)) { in PHP_INI_MH()
1449 if (MBSTRG(http_output_conv_mimetypes)) { in PHP_INI_MH()
1450 _php_mb_free_regex(MBSTRG(http_output_conv_mimetypes)); in PHP_INI_MH()
1453 MBSTRG(http_output_conv_mimetypes) = re; in PHP_INI_MH()
1561 if (MBSTRG(encoding_translation)) { in PHP_MINIT_FUNCTION()
1614 MBSTRG(current_internal_encoding) = MBSTRG(internal_encoding); in PHP_RINIT_FUNCTION()
1615 MBSTRG(current_http_output_encoding) = MBSTRG(http_output_encoding); in PHP_RINIT_FUNCTION()
1616 MBSTRG(current_filter_illegal_mode) = MBSTRG(filter_illegal_mode); in PHP_RINIT_FUNCTION()
1617 MBSTRG(current_filter_illegal_substchar) = MBSTRG(filter_illegal_substchar); in PHP_RINIT_FUNCTION()
1619 MBSTRG(illegalchars) = 0; in PHP_RINIT_FUNCTION()
1624 if (MBSTRG(func_overload)){ in PHP_RINIT_FUNCTION()
1630 if ((MBSTRG(func_overload) & p->type) == p->type && in PHP_RINIT_FUNCTION()
1657 zend_multibyte_set_internal_encoding((const zend_encoding *)MBSTRG(internal_encoding)); in PHP_RINIT_FUNCTION()
1669 if (MBSTRG(current_detect_order_list) != NULL) { in PHP_RSHUTDOWN_FUNCTION()
1670 efree(MBSTRG(current_detect_order_list)); in PHP_RSHUTDOWN_FUNCTION()
1671 MBSTRG(current_detect_order_list) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1672 MBSTRG(current_detect_order_list_size) = 0; in PHP_RSHUTDOWN_FUNCTION()
1674 if (MBSTRG(outconv) != NULL) { in PHP_RSHUTDOWN_FUNCTION()
1675 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(MBSTRG(outconv)); in PHP_RSHUTDOWN_FUNCTION()
1676 mbfl_buffer_converter_delete(MBSTRG(outconv)); in PHP_RSHUTDOWN_FUNCTION()
1677 MBSTRG(outconv) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1681 MBSTRG(http_input_identify) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1682 MBSTRG(http_input_identify_post) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1683 MBSTRG(http_input_identify_get) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1684 MBSTRG(http_input_identify_cookie) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1685 MBSTRG(http_input_identify_string) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1688 if (MBSTRG(func_overload)){ in PHP_RSHUTDOWN_FUNCTION()
1691 if ((MBSTRG(func_overload) & p->type) == p->type && in PHP_RSHUTDOWN_FUNCTION()
1717 …php_info_print_table_row(2, "HTTP input encoding translation", MBSTRG(encoding_translation) ? "ena… in PHP_MINFO_FUNCTION()
1754 RETVAL_STRING((char *)mbfl_no_language2name(MBSTRG(language))); in PHP_FUNCTION()
1780 name = MBSTRG(current_internal_encoding) ? MBSTRG(current_internal_encoding)->name: NULL; in PHP_FUNCTION()
1792 MBSTRG(current_internal_encoding) = encoding; in PHP_FUNCTION()
1814 result = MBSTRG(http_input_identify); in PHP_FUNCTION()
1819 result = MBSTRG(http_input_identify_get); in PHP_FUNCTION()
1823 result = MBSTRG(http_input_identify_post); in PHP_FUNCTION()
1827 result = MBSTRG(http_input_identify_cookie); in PHP_FUNCTION()
1831 result = MBSTRG(http_input_identify_string); in PHP_FUNCTION()
1836 const mbfl_encoding **entry = MBSTRG(http_input_list); in PHP_FUNCTION()
1837 const size_t n = MBSTRG(http_input_list_size); in PHP_FUNCTION()
1850 const mbfl_encoding **entry = MBSTRG(http_input_list); in PHP_FUNCTION()
1851 const size_t n = MBSTRG(http_input_list_size); in PHP_FUNCTION()
1876 result = MBSTRG(http_input_identify); in PHP_FUNCTION()
1904 name = MBSTRG(current_http_output_encoding) ? MBSTRG(current_http_output_encoding)->name: NULL; in PHP_FUNCTION()
1916 MBSTRG(current_http_output_encoding) = encoding; in PHP_FUNCTION()
1935 size_t n = MBSTRG(current_detect_order_list_size); in PHP_FUNCTION()
1936 const mbfl_encoding **entry = MBSTRG(current_detect_order_list); in PHP_FUNCTION()
1969 if (MBSTRG(current_detect_order_list)) { in PHP_FUNCTION()
1970 efree(MBSTRG(current_detect_order_list)); in PHP_FUNCTION()
1972 MBSTRG(current_detect_order_list) = list; in PHP_FUNCTION()
1973 MBSTRG(current_detect_order_list_size) = size; in PHP_FUNCTION()
2009 if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE) { in PHP_FUNCTION()
2011 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_LONG) { in PHP_FUNCTION()
2013 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_ENTITY) { in PHP_FUNCTION()
2016 RETURN_LONG(MBSTRG(current_filter_illegal_substchar)); in PHP_FUNCTION()
2024 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE; in PHP_FUNCTION()
2026 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_LONG; in PHP_FUNCTION()
2028 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_ENTITY; in PHP_FUNCTION()
2033 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR; in PHP_FUNCTION()
2034 MBSTRG(current_filter_illegal_substchar) = Z_LVAL_P(arg1); in PHP_FUNCTION()
2044 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR; in PHP_FUNCTION()
2045 MBSTRG(current_filter_illegal_substchar) = Z_LVAL_P(arg1); in PHP_FUNCTION()
2113 info.to_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2114 info.to_language = MBSTRG(language); in PHP_FUNCTION()
2115 info.from_encodings = MBSTRG(http_input_list); in PHP_FUNCTION()
2116 info.num_from_encodings = MBSTRG(http_input_list_size); in PHP_FUNCTION()
2117 info.from_language = MBSTRG(language); in PHP_FUNCTION()
2136 MBSTRG(http_input_identify) = detected; in PHP_FUNCTION()
2163 encoding = MBSTRG(current_http_output_encoding); in PHP_FUNCTION()
2168 if (MBSTRG(outconv)) { in PHP_FUNCTION()
2169 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(MBSTRG(outconv)); in PHP_FUNCTION()
2170 mbfl_buffer_converter_delete(MBSTRG(outconv)); in PHP_FUNCTION()
2171 MBSTRG(outconv) = NULL; in PHP_FUNCTION()
2180 MBSTRG(http_output_conv_mimetypes), in PHP_FUNCTION()
2203 MBSTRG(outconv) = mbfl_buffer_converter_new2(MBSTRG(current_internal_encoding), encoding, 0); in PHP_FUNCTION()
2211 if (MBSTRG(outconv) == NULL) { in PHP_FUNCTION()
2218 mbfl_buffer_converter_illegal_mode(MBSTRG(outconv), MBSTRG(current_filter_illegal_mode)); in PHP_FUNCTION()
2219 …mbfl_buffer_converter_illegal_substchar(MBSTRG(outconv), MBSTRG(current_filter_illegal_substchar)); in PHP_FUNCTION()
2229 mbfl_buffer_converter_feed(MBSTRG(outconv), &string); in PHP_FUNCTION()
2231 mbfl_buffer_converter_flush(MBSTRG(outconv)); in PHP_FUNCTION()
2234 mbfl_buffer_converter_result(MBSTRG(outconv), &result); in PHP_FUNCTION()
2241 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(MBSTRG(outconv)); in PHP_FUNCTION()
2242 mbfl_buffer_converter_delete(MBSTRG(outconv)); in PHP_FUNCTION()
2243 MBSTRG(outconv) = NULL; in PHP_FUNCTION()
2270 string.no_language = MBSTRG(language); in PHP_FUNCTION()
2272 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2302 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2303 haystack.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2304 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2305 needle.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2383 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2384 haystack.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2385 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2386 needle.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2484 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; in PHP_FUNCTION()
2523 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; in PHP_FUNCTION()
2563 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2564 haystack.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2565 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2566 needle.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2636 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2637 haystack.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2638 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2639 needle.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2707 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; in PHP_FUNCTION()
2710 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2711 haystack.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2712 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2713 needle.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2781 const char *from_encoding = MBSTRG(current_internal_encoding)->name; in PHP_FUNCTION()
2784 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2785 haystack.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2786 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2787 needle.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2853 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2854 haystack.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2855 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2856 needle.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2911 string.no_language = MBSTRG(language); in PHP_FUNCTION()
2912 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2955 if (((MBSTRG(func_overload) & MB_OVERLOAD_STRING) == MB_OVERLOAD_STRING) in PHP_FUNCTION()
2989 string.no_language = MBSTRG(language); in PHP_FUNCTION()
2990 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
3061 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3062 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
3107 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3108 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
3109 marker.no_language = MBSTRG(language); in PHP_FUNCTION()
3110 marker.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
3205 to_encoding = MBSTRG(current_internal_encoding); in php_mb_convert_encoding()
3211 from_encoding = MBSTRG(current_internal_encoding); in php_mb_convert_encoding()
3213 string.no_language = MBSTRG(language); in php_mb_convert_encoding()
3227 from_encoding = mbfl_identify_encoding2(&string, list, size, MBSTRG(strict_detection)); in php_mb_convert_encoding()
3251 mbfl_buffer_converter_illegal_mode(convd, MBSTRG(current_filter_illegal_mode)); in php_mb_convert_encoding()
3252 mbfl_buffer_converter_illegal_substchar(convd, MBSTRG(current_filter_illegal_substchar)); in php_mb_convert_encoding()
3263 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(convd); in php_mb_convert_encoding()
3424 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; in PHP_FUNCTION()
3452 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; in PHP_FUNCTION()
3479 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; in PHP_FUNCTION()
3550 strict = (zend_bool)MBSTRG(strict_detection); in PHP_FUNCTION()
3556 elist = MBSTRG(current_detect_order_list); in PHP_FUNCTION()
3557 size = MBSTRG(current_detect_order_list_size); in PHP_FUNCTION()
3561 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3642 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3643 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
3666 const mbfl_language *lang = mbfl_no2language(MBSTRG(language)); in PHP_FUNCTION()
3701 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3702 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
3716 ret = mbfl_mime_header_decode(&string, &result, MBSTRG(current_internal_encoding)->no_encoding); in PHP_FUNCTION()
3739 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3740 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
3873 from_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
3875 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3900 identd = mbfl_encoding_detector_new2(elist, elistsz, MBSTRG(strict_detection)); in PHP_FUNCTION()
4002 mbfl_buffer_converter_illegal_mode(convd, MBSTRG(current_filter_illegal_mode)); in PHP_FUNCTION()
4003 mbfl_buffer_converter_illegal_substchar(convd, MBSTRG(current_filter_illegal_substchar)); in PHP_FUNCTION()
4086 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(convd); in PHP_FUNCTION()
4131 string.no_language = MBSTRG(language); in php_mb_numericentity_exec()
4132 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in php_mb_numericentity_exec()
4431 lang = mbfl_no2language(MBSTRG(language)); in PHP_FUNCTION()
4559 orig_str.no_language = MBSTRG(language); in PHP_FUNCTION()
4562 orig_str.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
4564 … mbfl_identify_encoding2(&orig_str, MBSTRG(current_detect_order_list), MBSTRG(current_detect_order… in PHP_FUNCTION()
4578 orig_str.no_language = MBSTRG(language); in PHP_FUNCTION()
4581 orig_str.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
4584 … mbfl_identify_encoding2(&orig_str, MBSTRG(current_detect_order_list), MBSTRG(current_detect_order… in PHP_FUNCTION()
4701 const mbfl_language *lang = mbfl_no2language(MBSTRG(language)); in PHP_FUNCTION()
4710 if (MBSTRG(current_internal_encoding)) { in PHP_FUNCTION()
4711 …add_assoc_string(return_value, "internal_encoding", (char *)MBSTRG(current_internal_encoding)->nam… in PHP_FUNCTION()
4713 if (MBSTRG(http_input_identify)) { in PHP_FUNCTION()
4714 add_assoc_string(return_value, "http_input", (char *)MBSTRG(http_input_identify)->name); in PHP_FUNCTION()
4716 if (MBSTRG(current_http_output_encoding)) { in PHP_FUNCTION()
4717 … add_assoc_string(return_value, "http_output", (char *)MBSTRG(current_http_output_encoding)->name); in PHP_FUNCTION()
4722 add_assoc_long(return_value, "func_overload", MBSTRG(func_overload)); in PHP_FUNCTION()
4723 if (MBSTRG(func_overload)){ in PHP_FUNCTION()
4727 if ((MBSTRG(func_overload) & over_func->type) == over_func->type ) { in PHP_FUNCTION()
4747 add_assoc_long(return_value, "illegal_chars", MBSTRG(illegalchars)); in PHP_FUNCTION()
4748 if (MBSTRG(encoding_translation)) { in PHP_FUNCTION()
4753 if ((name = (char *)mbfl_no_language2name(MBSTRG(language))) != NULL) { in PHP_FUNCTION()
4756 n = MBSTRG(current_detect_order_list_size); in PHP_FUNCTION()
4757 entry = MBSTRG(current_detect_order_list); in PHP_FUNCTION()
4767 if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE) { in PHP_FUNCTION()
4769 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_LONG) { in PHP_FUNCTION()
4771 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_ENTITY) { in PHP_FUNCTION()
4774 add_assoc_long(return_value, "substitute_character", MBSTRG(current_filter_illegal_substchar)); in PHP_FUNCTION()
4776 if (MBSTRG(strict_detection)) { in PHP_FUNCTION()
4782 if (MBSTRG(current_internal_encoding)) { in PHP_FUNCTION()
4783 RETVAL_STRING((char *)MBSTRG(current_internal_encoding)->name); in PHP_FUNCTION()
4786 if (MBSTRG(http_input_identify)) { in PHP_FUNCTION()
4787 RETVAL_STRING((char *)MBSTRG(http_input_identify)->name); in PHP_FUNCTION()
4790 if (MBSTRG(current_http_output_encoding)) { in PHP_FUNCTION()
4791 RETVAL_STRING((char *)MBSTRG(current_http_output_encoding)->name); in PHP_FUNCTION()
4798 RETVAL_LONG(MBSTRG(func_overload)); in PHP_FUNCTION()
4800 if (MBSTRG(func_overload)){ in PHP_FUNCTION()
4804 if ((MBSTRG(func_overload) & over_func->type) == over_func->type ) { in PHP_FUNCTION()
4825 RETVAL_LONG(MBSTRG(illegalchars)); in PHP_FUNCTION()
4827 if (MBSTRG(encoding_translation)) { in PHP_FUNCTION()
4833 if ((name = (char *)mbfl_no_language2name(MBSTRG(language))) != NULL) { in PHP_FUNCTION()
4837 n = MBSTRG(current_detect_order_list_size); in PHP_FUNCTION()
4838 entry = MBSTRG(current_detect_order_list); in PHP_FUNCTION()
4848 if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE) { in PHP_FUNCTION()
4850 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_LONG) { in PHP_FUNCTION()
4852 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_ENTITY) { in PHP_FUNCTION()
4855 RETVAL_LONG(MBSTRG(current_filter_illegal_substchar)); in PHP_FUNCTION()
4858 if (MBSTRG(strict_detection)) { in PHP_FUNCTION()
4911 const mbfl_encoding *encoding = MBSTRG(current_internal_encoding); in php_mb_check_encoding()
4915 return MBSTRG(illegalchars) == 0; in php_mb_check_encoding()
4943 const mbfl_encoding *encoding = MBSTRG(current_internal_encoding); in php_mb_check_encoding_recursive()
5024 if (MBSTRG(illegalchars) == 0) { in PHP_FUNCTION()
5053 no_enc = MBSTRG(current_internal_encoding)->no_encoding; in php_mb_ord()
5074 long orig_illegalchars = MBSTRG(illegalchars); in php_mb_ord()
5075 MBSTRG(illegalchars) = 0; in php_mb_ord()
5077 if (MBSTRG(illegalchars) != 0) { in php_mb_ord()
5081 MBSTRG(illegalchars) = orig_illegalchars; in php_mb_ord()
5085 MBSTRG(illegalchars) = orig_illegalchars; in php_mb_ord()
5138 no_enc = MBSTRG(current_internal_encoding)->no_encoding; in php_mb_chr()
5205 long orig_illegalchars = MBSTRG(illegalchars); in php_mb_chr()
5206 MBSTRG(illegalchars) = 0; in php_mb_chr()
5208 if (MBSTRG(illegalchars) != 0) { in php_mb_chr()
5211 MBSTRG(illegalchars) = orig_illegalchars; in php_mb_chr()
5215 MBSTRG(illegalchars) = orig_illegalchars; in php_mb_chr()
5277 enc = (char *) MBSTRG(current_internal_encoding)->name; in PHP_FUNCTION()
5301 if (MBSTRG(current_detect_order_list)) { in php_mb_populate_current_detect_order_list()
5305 if (MBSTRG(detect_order_list) && MBSTRG(detect_order_list_size)) { in php_mb_populate_current_detect_order_list()
5306 nentries = MBSTRG(detect_order_list_size); in php_mb_populate_current_detect_order_list()
5308 memcpy(entry, MBSTRG(detect_order_list), sizeof(mbfl_encoding*) * nentries); in php_mb_populate_current_detect_order_list()
5310 const enum mbfl_no_encoding *src = MBSTRG(default_detect_order_list); in php_mb_populate_current_detect_order_list()
5312 nentries = MBSTRG(default_detect_order_list_size); in php_mb_populate_current_detect_order_list()
5318 MBSTRG(current_detect_order_list) = entry; in php_mb_populate_current_detect_order_list()
5319 MBSTRG(current_detect_order_list_size) = nentries; in php_mb_populate_current_detect_order_list()
5326 return MBSTRG(encoding_translation); in php_mb_encoding_translation()
5351 return php_mb_mbchar_bytes_ex(s, MBSTRG(internal_encoding)); in php_mb_mbchar_bytes()
5399 return php_mb_safe_strrchr_ex(s, c, nbytes, MBSTRG(internal_encoding)); in php_mb_safe_strrchr()
5413 haystack.no_language = MBSTRG(language); in php_mb_stripos()
5414 haystack.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in php_mb_stripos()
5415 needle.no_language = MBSTRG(language); in php_mb_stripos()
5416 needle.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in php_mb_stripos()
5485 *list = (const zend_encoding **)MBSTRG(http_input_list); in php_mb_gpc_get_detect_order()
5486 *list_size = MBSTRG(http_input_list_size); in php_mb_gpc_get_detect_order()
5492 MBSTRG(http_input_identify) = (const mbfl_encoding*)encoding; in php_mb_gpc_set_input_encoding()