Lines Matching refs:MBSTRG

724 		size = n + MBSTRG(default_detect_order_list_size);  in php_mb_parse_encoding_list()
750 const enum mbfl_no_encoding *src = MBSTRG(default_detect_order_list); in php_mb_parse_encoding_list()
751 const size_t identify_list_size = MBSTRG(default_detect_order_list_size); in php_mb_parse_encoding_list()
819 size = i + MBSTRG(default_detect_order_list_size); in php_mb_parse_encoding_array()
829 const enum mbfl_no_encoding *src = MBSTRG(default_detect_order_list); in php_mb_parse_encoding_array()
830 const size_t identify_list_size = MBSTRG(default_detect_order_list_size); in php_mb_parse_encoding_array()
909 list = (const zend_encoding **)MBSTRG(current_detect_order_list); in php_mb_zend_encoding_detector()
910 list_size = MBSTRG(current_detect_order_list_size); in php_mb_zend_encoding_detector()
914 string.no_language = MBSTRG(language); in php_mb_zend_encoding_detector()
931 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()
1612 MBSTRG(current_internal_encoding) = MBSTRG(internal_encoding); in PHP_RINIT_FUNCTION()
1613 MBSTRG(current_http_output_encoding) = MBSTRG(http_output_encoding); in PHP_RINIT_FUNCTION()
1614 MBSTRG(current_filter_illegal_mode) = MBSTRG(filter_illegal_mode); in PHP_RINIT_FUNCTION()
1615 MBSTRG(current_filter_illegal_substchar) = MBSTRG(filter_illegal_substchar); in PHP_RINIT_FUNCTION()
1617 MBSTRG(illegalchars) = 0; in PHP_RINIT_FUNCTION()
1622 if (MBSTRG(func_overload)){ in PHP_RINIT_FUNCTION()
1627 if ((MBSTRG(func_overload) & p->type) == p->type && in PHP_RINIT_FUNCTION()
1654 zend_multibyte_set_internal_encoding((const zend_encoding *)MBSTRG(internal_encoding)); in PHP_RINIT_FUNCTION()
1666 if (MBSTRG(current_detect_order_list) != NULL) { in PHP_RSHUTDOWN_FUNCTION()
1667 efree(MBSTRG(current_detect_order_list)); in PHP_RSHUTDOWN_FUNCTION()
1668 MBSTRG(current_detect_order_list) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1669 MBSTRG(current_detect_order_list_size) = 0; in PHP_RSHUTDOWN_FUNCTION()
1671 if (MBSTRG(outconv) != NULL) { in PHP_RSHUTDOWN_FUNCTION()
1672 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(MBSTRG(outconv)); in PHP_RSHUTDOWN_FUNCTION()
1673 mbfl_buffer_converter_delete(MBSTRG(outconv)); in PHP_RSHUTDOWN_FUNCTION()
1674 MBSTRG(outconv) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1678 MBSTRG(http_input_identify) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1679 MBSTRG(http_input_identify_post) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1680 MBSTRG(http_input_identify_get) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1681 MBSTRG(http_input_identify_cookie) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1682 MBSTRG(http_input_identify_string) = NULL; in PHP_RSHUTDOWN_FUNCTION()
1685 if (MBSTRG(func_overload)){ in PHP_RSHUTDOWN_FUNCTION()
1688 if ((MBSTRG(func_overload) & p->type) == p->type && in PHP_RSHUTDOWN_FUNCTION()
1714 …php_info_print_table_row(2, "HTTP input encoding translation", MBSTRG(encoding_translation) ? "ena… in PHP_MINFO_FUNCTION()
1751 RETVAL_STRING((char *)mbfl_no_language2name(MBSTRG(language))); in PHP_FUNCTION()
1777 name = MBSTRG(current_internal_encoding) ? MBSTRG(current_internal_encoding)->name: NULL; in PHP_FUNCTION()
1789 MBSTRG(current_internal_encoding) = encoding; in PHP_FUNCTION()
1811 result = MBSTRG(http_input_identify); in PHP_FUNCTION()
1816 result = MBSTRG(http_input_identify_get); in PHP_FUNCTION()
1820 result = MBSTRG(http_input_identify_post); in PHP_FUNCTION()
1824 result = MBSTRG(http_input_identify_cookie); in PHP_FUNCTION()
1828 result = MBSTRG(http_input_identify_string); in PHP_FUNCTION()
1833 const mbfl_encoding **entry = MBSTRG(http_input_list); in PHP_FUNCTION()
1834 const size_t n = MBSTRG(http_input_list_size); in PHP_FUNCTION()
1847 const mbfl_encoding **entry = MBSTRG(http_input_list); in PHP_FUNCTION()
1848 const size_t n = MBSTRG(http_input_list_size); in PHP_FUNCTION()
1873 result = MBSTRG(http_input_identify); in PHP_FUNCTION()
1901 name = MBSTRG(current_http_output_encoding) ? MBSTRG(current_http_output_encoding)->name: NULL; in PHP_FUNCTION()
1913 MBSTRG(current_http_output_encoding) = encoding; in PHP_FUNCTION()
1932 size_t n = MBSTRG(current_detect_order_list_size); in PHP_FUNCTION()
1933 const mbfl_encoding **entry = MBSTRG(current_detect_order_list); in PHP_FUNCTION()
1966 if (MBSTRG(current_detect_order_list)) { in PHP_FUNCTION()
1967 efree(MBSTRG(current_detect_order_list)); in PHP_FUNCTION()
1969 MBSTRG(current_detect_order_list) = list; in PHP_FUNCTION()
1970 MBSTRG(current_detect_order_list_size) = size; in PHP_FUNCTION()
1987 if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE) { in PHP_FUNCTION()
1989 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_LONG) { in PHP_FUNCTION()
1991 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_ENTITY) { in PHP_FUNCTION()
1994 RETURN_LONG(MBSTRG(current_filter_illegal_substchar)); in PHP_FUNCTION()
2002 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE; in PHP_FUNCTION()
2004 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_LONG; in PHP_FUNCTION()
2006 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_ENTITY; in PHP_FUNCTION()
2011 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR; in PHP_FUNCTION()
2012 MBSTRG(current_filter_illegal_substchar) = Z_LVAL_P(arg1); in PHP_FUNCTION()
2022 MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR; in PHP_FUNCTION()
2023 MBSTRG(current_filter_illegal_substchar) = Z_LVAL_P(arg1); in PHP_FUNCTION()
2091 info.to_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
2092 info.to_language = MBSTRG(language); in PHP_FUNCTION()
2093 info.from_encodings = MBSTRG(http_input_list); in PHP_FUNCTION()
2094 info.num_from_encodings = MBSTRG(http_input_list_size); in PHP_FUNCTION()
2095 info.from_language = MBSTRG(language); in PHP_FUNCTION()
2107 MBSTRG(http_input_identify) = detected; in PHP_FUNCTION()
2134 encoding = MBSTRG(current_http_output_encoding); in PHP_FUNCTION()
2139 if (MBSTRG(outconv)) { in PHP_FUNCTION()
2140 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(MBSTRG(outconv)); in PHP_FUNCTION()
2141 mbfl_buffer_converter_delete(MBSTRG(outconv)); in PHP_FUNCTION()
2142 MBSTRG(outconv) = NULL; in PHP_FUNCTION()
2151 MBSTRG(http_output_conv_mimetypes), in PHP_FUNCTION()
2174 MBSTRG(outconv) = mbfl_buffer_converter_new2(MBSTRG(current_internal_encoding), encoding, 0); in PHP_FUNCTION()
2182 if (MBSTRG(outconv) == NULL) { in PHP_FUNCTION()
2189 mbfl_buffer_converter_illegal_mode(MBSTRG(outconv), MBSTRG(current_filter_illegal_mode)); in PHP_FUNCTION()
2190 …mbfl_buffer_converter_illegal_substchar(MBSTRG(outconv), MBSTRG(current_filter_illegal_substchar)); in PHP_FUNCTION()
2200 mbfl_buffer_converter_feed(MBSTRG(outconv), &string); in PHP_FUNCTION()
2202 mbfl_buffer_converter_flush(MBSTRG(outconv)); in PHP_FUNCTION()
2205 mbfl_buffer_converter_result(MBSTRG(outconv), &result); in PHP_FUNCTION()
2212 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(MBSTRG(outconv)); in PHP_FUNCTION()
2213 mbfl_buffer_converter_delete(MBSTRG(outconv)); in PHP_FUNCTION()
2214 MBSTRG(outconv) = NULL; in PHP_FUNCTION()
2241 string.no_language = MBSTRG(language); in PHP_FUNCTION()
2243 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2273 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2274 haystack.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2275 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2276 needle.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2350 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2351 haystack.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2352 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2353 needle.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2451 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; in PHP_FUNCTION()
2490 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; in PHP_FUNCTION()
2530 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2531 haystack.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2532 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2533 needle.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2603 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2604 haystack.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2605 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2606 needle.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2674 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; in PHP_FUNCTION()
2677 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2678 haystack.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2679 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2680 needle.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2748 const char *from_encoding = MBSTRG(current_internal_encoding)->name; in PHP_FUNCTION()
2751 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2752 haystack.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2753 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2754 needle.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2820 haystack.no_language = MBSTRG(language); in PHP_FUNCTION()
2821 haystack.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2822 needle.no_language = MBSTRG(language); in PHP_FUNCTION()
2823 needle.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2878 string.no_language = MBSTRG(language); in PHP_FUNCTION()
2879 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
2922 if (((MBSTRG(func_overload) & MB_OVERLOAD_STRING) == MB_OVERLOAD_STRING) in PHP_FUNCTION()
2956 string.no_language = MBSTRG(language); in PHP_FUNCTION()
2957 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
3028 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3029 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
3074 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3075 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
3076 marker.no_language = MBSTRG(language); in PHP_FUNCTION()
3077 marker.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
3142 to_encoding = MBSTRG(current_internal_encoding); in php_mb_convert_encoding()
3148 from_encoding = MBSTRG(current_internal_encoding); in php_mb_convert_encoding()
3150 string.no_language = MBSTRG(language); in php_mb_convert_encoding()
3164 from_encoding = mbfl_identify_encoding2(&string, list, size, MBSTRG(strict_detection)); in php_mb_convert_encoding()
3187 mbfl_buffer_converter_illegal_mode(convd, MBSTRG(current_filter_illegal_mode)); in php_mb_convert_encoding()
3188 mbfl_buffer_converter_illegal_substchar(convd, MBSTRG(current_filter_illegal_substchar)); in php_mb_convert_encoding()
3199 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(convd); in php_mb_convert_encoding()
3276 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; in PHP_FUNCTION()
3304 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; in PHP_FUNCTION()
3331 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; in PHP_FUNCTION()
3402 strict = (zend_bool)MBSTRG(strict_detection); in PHP_FUNCTION()
3408 elist = MBSTRG(current_detect_order_list); in PHP_FUNCTION()
3409 size = MBSTRG(current_detect_order_list_size); in PHP_FUNCTION()
3413 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3490 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3491 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
3514 const mbfl_language *lang = mbfl_no2language(MBSTRG(language)); in PHP_FUNCTION()
3549 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3550 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
3564 ret = mbfl_mime_header_decode(&string, &result, MBSTRG(current_internal_encoding)->no_encoding); in PHP_FUNCTION()
3587 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3588 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
3721 from_encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
3723 string.no_language = MBSTRG(language); in PHP_FUNCTION()
3748 identd = mbfl_encoding_detector_new2(elist, elistsz, MBSTRG(strict_detection)); in PHP_FUNCTION()
3850 mbfl_buffer_converter_illegal_mode(convd, MBSTRG(current_filter_illegal_mode)); in PHP_FUNCTION()
3851 mbfl_buffer_converter_illegal_substchar(convd, MBSTRG(current_filter_illegal_substchar)); in PHP_FUNCTION()
3934 MBSTRG(illegalchars) += mbfl_buffer_illegalchars(convd); in PHP_FUNCTION()
3979 string.no_language = MBSTRG(language); in php_mb_numericentity_exec()
3980 string.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in php_mb_numericentity_exec()
4279 lang = mbfl_no2language(MBSTRG(language)); in PHP_FUNCTION()
4394 orig_str.no_language = MBSTRG(language); in PHP_FUNCTION()
4397 orig_str.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
4399 … mbfl_identify_encoding2(&orig_str, MBSTRG(current_detect_order_list), MBSTRG(current_detect_order… in PHP_FUNCTION()
4413 orig_str.no_language = MBSTRG(language); in PHP_FUNCTION()
4416 orig_str.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in PHP_FUNCTION()
4419 … mbfl_identify_encoding2(&orig_str, MBSTRG(current_detect_order_list), MBSTRG(current_detect_order… in PHP_FUNCTION()
4532 const mbfl_language *lang = mbfl_no2language(MBSTRG(language)); in PHP_FUNCTION()
4541 if (MBSTRG(current_internal_encoding)) { in PHP_FUNCTION()
4542 …add_assoc_string(return_value, "internal_encoding", (char *)MBSTRG(current_internal_encoding)->nam… in PHP_FUNCTION()
4544 if (MBSTRG(http_input_identify)) { in PHP_FUNCTION()
4545 add_assoc_string(return_value, "http_input", (char *)MBSTRG(http_input_identify)->name); in PHP_FUNCTION()
4547 if (MBSTRG(current_http_output_encoding)) { in PHP_FUNCTION()
4548 … add_assoc_string(return_value, "http_output", (char *)MBSTRG(current_http_output_encoding)->name); in PHP_FUNCTION()
4553 add_assoc_long(return_value, "func_overload", MBSTRG(func_overload)); in PHP_FUNCTION()
4554 if (MBSTRG(func_overload)){ in PHP_FUNCTION()
4558 if ((MBSTRG(func_overload) & over_func->type) == over_func->type ) { in PHP_FUNCTION()
4578 add_assoc_long(return_value, "illegal_chars", MBSTRG(illegalchars)); in PHP_FUNCTION()
4579 if (MBSTRG(encoding_translation)) { in PHP_FUNCTION()
4584 if ((name = (char *)mbfl_no_language2name(MBSTRG(language))) != NULL) { in PHP_FUNCTION()
4587 n = MBSTRG(current_detect_order_list_size); in PHP_FUNCTION()
4588 entry = MBSTRG(current_detect_order_list); in PHP_FUNCTION()
4598 if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE) { in PHP_FUNCTION()
4600 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_LONG) { in PHP_FUNCTION()
4602 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_ENTITY) { in PHP_FUNCTION()
4605 add_assoc_long(return_value, "substitute_character", MBSTRG(current_filter_illegal_substchar)); in PHP_FUNCTION()
4607 if (MBSTRG(strict_detection)) { in PHP_FUNCTION()
4613 if (MBSTRG(current_internal_encoding)) { in PHP_FUNCTION()
4614 RETVAL_STRING((char *)MBSTRG(current_internal_encoding)->name); in PHP_FUNCTION()
4617 if (MBSTRG(http_input_identify)) { in PHP_FUNCTION()
4618 RETVAL_STRING((char *)MBSTRG(http_input_identify)->name); in PHP_FUNCTION()
4621 if (MBSTRG(current_http_output_encoding)) { in PHP_FUNCTION()
4622 RETVAL_STRING((char *)MBSTRG(current_http_output_encoding)->name); in PHP_FUNCTION()
4629 RETVAL_LONG(MBSTRG(func_overload)); in PHP_FUNCTION()
4631 if (MBSTRG(func_overload)){ in PHP_FUNCTION()
4635 if ((MBSTRG(func_overload) & over_func->type) == over_func->type ) { in PHP_FUNCTION()
4656 RETVAL_LONG(MBSTRG(illegalchars)); in PHP_FUNCTION()
4658 if (MBSTRG(encoding_translation)) { in PHP_FUNCTION()
4664 if ((name = (char *)mbfl_no_language2name(MBSTRG(language))) != NULL) { in PHP_FUNCTION()
4668 n = MBSTRG(current_detect_order_list_size); in PHP_FUNCTION()
4669 entry = MBSTRG(current_detect_order_list); in PHP_FUNCTION()
4679 if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE) { in PHP_FUNCTION()
4681 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_LONG) { in PHP_FUNCTION()
4683 } else if (MBSTRG(current_filter_illegal_mode) == MBFL_OUTPUTFILTER_ILLEGAL_MODE_ENTITY) { in PHP_FUNCTION()
4686 RETVAL_LONG(MBSTRG(current_filter_illegal_substchar)); in PHP_FUNCTION()
4689 if (MBSTRG(strict_detection)) { in PHP_FUNCTION()
4709 const mbfl_encoding *encoding = MBSTRG(current_internal_encoding); in PHP_FUNCTION()
4718 RETURN_BOOL(MBSTRG(illegalchars) == 0); in PHP_FUNCTION()
4763 if (MBSTRG(current_detect_order_list)) { in php_mb_populate_current_detect_order_list()
4767 if (MBSTRG(detect_order_list) && MBSTRG(detect_order_list_size)) { in php_mb_populate_current_detect_order_list()
4768 nentries = MBSTRG(detect_order_list_size); in php_mb_populate_current_detect_order_list()
4770 memcpy(entry, MBSTRG(detect_order_list), sizeof(mbfl_encoding*) * nentries); in php_mb_populate_current_detect_order_list()
4772 const enum mbfl_no_encoding *src = MBSTRG(default_detect_order_list); in php_mb_populate_current_detect_order_list()
4774 nentries = MBSTRG(default_detect_order_list_size); in php_mb_populate_current_detect_order_list()
4780 MBSTRG(current_detect_order_list) = entry; in php_mb_populate_current_detect_order_list()
4781 MBSTRG(current_detect_order_list_size) = nentries; in php_mb_populate_current_detect_order_list()
4788 return MBSTRG(encoding_translation); in php_mb_encoding_translation()
4813 return php_mb_mbchar_bytes_ex(s, MBSTRG(internal_encoding)); in php_mb_mbchar_bytes()
4861 return php_mb_safe_strrchr_ex(s, c, nbytes, MBSTRG(internal_encoding)); in php_mb_safe_strrchr()
4875 haystack.no_language = MBSTRG(language); in php_mb_stripos()
4876 haystack.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in php_mb_stripos()
4877 needle.no_language = MBSTRG(language); in php_mb_stripos()
4878 needle.no_encoding = MBSTRG(current_internal_encoding)->no_encoding; in php_mb_stripos()
4944 *list = (const zend_encoding **)MBSTRG(http_input_list); in php_mb_gpc_get_detect_order()
4945 *list_size = MBSTRG(http_input_list_size); in php_mb_gpc_get_detect_order()
4951 MBSTRG(http_input_identify) = (const mbfl_encoding*)encoding; in php_mb_gpc_set_input_encoding()