Lines Matching refs:info

42 	php_mb_encoding_handler_info_t info;  in ZEND_EXTERN_MODULE_GLOBALS()  local
125 info.data_type = arg; in ZEND_EXTERN_MODULE_GLOBALS()
126 info.separator = separator; in ZEND_EXTERN_MODULE_GLOBALS()
127 info.report_errors = false; in ZEND_EXTERN_MODULE_GLOBALS()
128 info.to_encoding = MBSTRG(internal_encoding); in ZEND_EXTERN_MODULE_GLOBALS()
129 info.from_encodings = MBSTRG(http_input_list); in ZEND_EXTERN_MODULE_GLOBALS()
130 info.num_from_encodings = MBSTRG(http_input_list_size); in ZEND_EXTERN_MODULE_GLOBALS()
134 detected = _php_mb_encoding_handler_ex(&info, &v_array, res); in ZEND_EXTERN_MODULE_GLOBALS()
165 const mbfl_encoding *_php_mb_encoding_handler_ex(const php_mb_encoding_handler_info_t *info, zval *… in _php_mb_encoding_handler_ex() argument
180 for (const char *s2 = info->separator; *s2; s2++) { in _php_mb_encoding_handler_ex()
193 var = php_strtok_r(res, info->separator, &strtok_buf); in _php_mb_encoding_handler_ex()
213 var = php_strtok_r(NULL, info->separator, &strtok_buf); in _php_mb_encoding_handler_ex()
225 if (info->num_from_encodings == 0) { in _php_mb_encoding_handler_ex()
227 } else if (info->num_from_encodings == 1) { in _php_mb_encoding_handler_ex()
228 from_encoding = info->from_encodings[0]; in _php_mb_encoding_handler_ex()
230 …ng_for_strings((const unsigned char**)val_list, len_list, num, info->from_encodings, info->num_fro… in _php_mb_encoding_handler_ex()
232 if (info->report_errors) { in _php_mb_encoding_handler_ex()
242 if (from_encoding != &mbfl_encoding_pass && info->to_encoding != &mbfl_encoding_pass) { in _php_mb_encoding_handler_ex()
244 … mb_fast_convert((unsigned char*)val_list[n], len_list[n], from_encoding, info->to_encoding, MBSTR… in _php_mb_encoding_handler_ex()
249 … mb_fast_convert((unsigned char*)val_list[n], len_list[n], from_encoding, info->to_encoding, MBSTR… in _php_mb_encoding_handler_ex()
255 …if (sapi_module.input_filter(info->data_type, ZSTR_VAL(converted_var), &val, ZSTR_LEN(converted_va… in _php_mb_encoding_handler_ex()
264 if (sapi_module.input_filter(info->data_type, var, &val, len_list[n], &new_val_len)) { in _php_mb_encoding_handler_ex()
288 php_mb_encoding_handler_info_t info; in SAPI_POST_HANDLER_FUNC() local
293 info.data_type = PARSE_POST; in SAPI_POST_HANDLER_FUNC()
294 info.separator = "&"; in SAPI_POST_HANDLER_FUNC()
295 info.report_errors = false; in SAPI_POST_HANDLER_FUNC()
296 info.to_encoding = MBSTRG(internal_encoding); in SAPI_POST_HANDLER_FUNC()
297 info.from_encodings = MBSTRG(http_input_list); in SAPI_POST_HANDLER_FUNC()
298 info.num_from_encodings = MBSTRG(http_input_list_size); in SAPI_POST_HANDLER_FUNC()
302 detected = _php_mb_encoding_handler_ex(&info, arg, post_data_str ? ZSTR_VAL(post_data_str) : NULL); in SAPI_POST_HANDLER_FUNC()