Home
last modified time | relevance | path

Searched refs:ZSTR_LEN (Results 26 – 50 of 194) sorted by relevance

12345678

/PHP-7.4/ext/gettext/
H A Dgettext.c194 PHP_GETTEXT_LENGTH_CHECK("msgid", ZSTR_LEN(msgid)) in PHP_NAMED_FUNCTION()
216 PHP_GETTEXT_DOMAIN_LENGTH_CHECK(ZSTR_LEN(domain)) in PHP_NAMED_FUNCTION()
217 PHP_GETTEXT_LENGTH_CHECK("msgid", ZSTR_LEN(msgid)) in PHP_NAMED_FUNCTION()
241 PHP_GETTEXT_DOMAIN_LENGTH_CHECK(ZSTR_LEN(domain)) in PHP_NAMED_FUNCTION()
242 PHP_GETTEXT_LENGTH_CHECK("msgid", ZSTR_LEN(msgid)) in PHP_NAMED_FUNCTION()
/PHP-7.4/ext/pcre/
H A Dphp_pcre.c604 key = zend_string_alloc(ZSTR_LEN(regex) + ZSTR_LEN(BG(locale_string)) + 1, 0); in pcre_get_compiled_regex_cache_ex()
606 memcpy(ZSTR_VAL(key) + ZSTR_LEN(BG(locale_string)), ZSTR_VAL(regex), ZSTR_LEN(regex) + 1); in pcre_get_compiled_regex_cache_ex()
1745 result_len += ZSTR_LEN(replace_str); in php_pcre_replace_impl()
1825 ZSTR_LEN(result) = result_len; in php_pcre_replace_impl()
1982 result_len += ZSTR_LEN(eval_result); in php_pcre_replace_func_impl()
2034 ZSTR_LEN(result) = result_len; in php_pcre_replace_func_impl()
2130 ZSTR_LEN(subject_str), in php_pcre_replace_array()
2157 ZSTR_LEN(subject_str), in php_pcre_replace_array()
2186 ZSTR_LEN(subject_str), in php_replace_in_subject()
2750 if (ZSTR_LEN(str) == 0) { in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/spl/
H A Dphp_spl.c325 pos_len = (int)ZSTR_LEN(file_exts); in PHP_FUNCTION()
582 lc_name = zend_string_alloc(ZSTR_LEN(func_name) + sizeof(uint32_t), 0); in PHP_FUNCTION()
585 ZSTR_VAL(lc_name)[ZSTR_LEN(lc_name)] = '\0'; in PHP_FUNCTION()
590 lc_name = zend_string_alloc(ZSTR_LEN(func_name) - 1, 0); in PHP_FUNCTION()
607 lc_name = zend_string_extend(lc_name, ZSTR_LEN(lc_name) + sizeof(uint32_t), 0); in PHP_FUNCTION()
609 ZSTR_VAL(lc_name)[ZSTR_LEN(lc_name)] = '\0'; in PHP_FUNCTION()
707 lc_name = zend_string_alloc(ZSTR_LEN(func_name) + sizeof(uint32_t), 0); in PHP_FUNCTION()
710 ZSTR_VAL(lc_name)[ZSTR_LEN(lc_name)] = '\0'; in PHP_FUNCTION()
714 lc_name = zend_string_alloc(ZSTR_LEN(func_name) - 1, 0); in PHP_FUNCTION()
738 lc_name = zend_string_extend(lc_name, ZSTR_LEN(lc_name) + sizeof(uint32_t), 0); in PHP_FUNCTION()
[all …]
H A Dspl_engine.h36 …zend_call_method(retval, pce, &func, ZSTR_VAL(func->common.function_name), ZSTR_LEN(func->common.f… in spl_instantiate_arg_ex1()
47 …zend_call_method(retval, pce, &func, ZSTR_VAL(func->common.function_name), ZSTR_LEN(func->common.f… in spl_instantiate_arg_ex2()
/PHP-7.4/Zend/
H A Dzend_constants.c281 char *lcname = do_alloca(ZSTR_LEN(name) + 1, use_heap); in zend_get_constant_impl()
282 zend_str_tolower_copy(lcname, ZSTR_VAL(name), ZSTR_LEN(name)); in zend_get_constant_impl()
283 zv = zend_hash_str_find(EG(zend_constants), lcname, ZSTR_LEN(name)); in zend_get_constant_impl()
290 c = zend_get_special_constant(ZSTR_VAL(name), ZSTR_LEN(name)); in zend_get_constant_impl()
306 const char *ns_sep = zend_memrchr(ZSTR_VAL(c->name), '\\', ZSTR_LEN(c->name)); in is_access_deprecated()
310 size_t shortname_len = ZSTR_LEN(c->name) - shortname_offset; in is_access_deprecated()
318 return memcmp(access_name, ZSTR_VAL(c->name), ZSTR_LEN(c->name)) != 0; in is_access_deprecated()
328 size_t name_len = ZSTR_LEN(cname); in zend_get_constant_ex()
506 …lowercase_name = zend_string_init(ZSTR_VAL(c->name), ZSTR_LEN(c->name), ZEND_CONSTANT_FLAGS(c) & C… in zend_register_constant()
520 if (ZSTR_VAL(c->name)[0] == '\0' && ZSTR_LEN(c->name) > sizeof("\0__COMPILER_HALT_OFFSET__")-1 in zend_register_constant()
H A Dzend_ini.c194 …return zend_binary_strcasecmp(ZSTR_VAL(f->key), ZSTR_LEN(f->key), ZSTR_VAL(s->key), ZSTR_LEN(s->ke… in ini_key_compare()
499 if ((ZSTR_LEN(str) == 4 && strcasecmp(ZSTR_VAL(str), "true") == 0) in zend_ini_parse_bool()
500 || (ZSTR_LEN(str) == 3 && strcasecmp(ZSTR_VAL(str), "yes") == 0) in zend_ini_parse_bool()
501 || (ZSTR_LEN(str) == 2 && strcasecmp(ZSTR_VAL(str), "on") == 0)) { in zend_ini_parse_bool()
616 *p = zend_atol(ZSTR_VAL(new_value), ZSTR_LEN(new_value)); in ZEND_INI_MH()
632 tmp = zend_atol(ZSTR_VAL(new_value), ZSTR_LEN(new_value)); in ZEND_INI_MH()
/PHP-7.4/ext/standard/
H A Dassert.c60 if (new_value && (Z_TYPE(ASSERTG(callback)) != IS_UNDEF || ZSTR_LEN(new_value))) { in PHP_INI_MH()
67 if (new_value && ZSTR_LEN(new_value)) { in PHP_INI_MH()
68 ASSERTG(cb) = pemalloc(ZSTR_LEN(new_value) + 1, 1); in PHP_INI_MH()
69 memcpy(ASSERTG(cb), ZSTR_VAL(new_value), ZSTR_LEN(new_value)); in PHP_INI_MH()
70 ASSERTG(cb)[ZSTR_LEN(new_value)] = '\0'; in PHP_INI_MH()
H A Dmetaphone.c42 if (metaphone((unsigned char *)ZSTR_VAL(str), ZSTR_LEN(str), phones, &result, 1) == 0) { in PHP_FUNCTION()
149 ZSTR_LEN(*phoned_word) = p_idx; \
158 ZSTR_LEN(*phoned_word) = p_idx; \
H A Dnet.c58 ZSTR_LEN(ret) = strlen(ZSTR_VAL(ret)); in php_inet_ntop()
68 ZSTR_LEN(ret) = strlen(ZSTR_VAL(ret)); in php_inet_ntop()
90 ZSTR_LEN(ret) = strlen(ZSTR_VAL(ret)); in php_inet_ntop()
212 ZSTR_LEN(mac) = s - ZSTR_VAL(mac); in PHP_FUNCTION()
H A Dvar.c47 PHPWRITE(ZSTR_VAL(key), ZSTR_LEN(key)); in php_array_element_dump()
72 PHPWRITE(ZSTR_VAL(key), ZSTR_LEN(key)); in php_object_property_dump()
239 PHPWRITE(ZSTR_VAL(key), ZSTR_LEN(key)); in zval_array_element_dump()
623 PHPWRITE(ZSTR_VAL(buf.s), ZSTR_LEN(buf.s)); in php_var_export()
648 PHPWRITE(ZSTR_VAL(buf.s), ZSTR_LEN(buf.s)); in PHP_FUNCTION()
726 smart_str_append_unsigned(buf, ZSTR_LEN(class_name)); in php_var_serialize_class_name()
850 ZSTR_VAL(ce->name), ZSTR_LEN(ce->name), in php_var_serialize_get_sleep_props()
851 ZSTR_VAL(name), ZSTR_LEN(name), ce->type & ZEND_INTERNAL_CLASS); in php_var_serialize_get_sleep_props()
908 php_var_serialize_string(buf, ZSTR_VAL(key), ZSTR_LEN(key)); in php_var_serialize_nested_data()
1038 php_var_serialize_string(buf, ZSTR_VAL(key), ZSTR_LEN(key)); in php_var_serialize_intern()
[all …]
H A Dphp_mail.h35 if (!strncasecmp(target, ZSTR_VAL(key), ZSTR_LEN(key))) { \
H A Dftp_fopen_wrapper.c150 …use_ssl = resource->scheme && (ZSTR_LEN(resource->scheme) > 3) && ZSTR_VAL(resource->scheme)[3] ==… in php_ftp_fopen_connect()
247 ZSTR_LEN(resource->user) = php_raw_url_decode(ZSTR_VAL(resource->user), ZSTR_LEN(resource->user)); in php_ftp_fopen_connect()
249 PHP_FTP_CNTRL_CHK(ZSTR_VAL(resource->user), ZSTR_LEN(resource->user), "Invalid login %s") in php_ftp_fopen_connect()
264ZSTR_LEN(resource->pass) = php_raw_url_decode(ZSTR_VAL(resource->pass), ZSTR_LEN(resource->pass)); in php_ftp_fopen_connect()
266 PHP_FTP_CNTRL_CHK(ZSTR_VAL(resource->pass), ZSTR_LEN(resource->pass), "Invalid password %s") in php_ftp_fopen_connect()
639 tmp_len = MIN(sizeof(ent->d_name), ZSTR_LEN(basename) - 1); in php_ftp_dirstream_read()
1067 buf = estrndup(ZSTR_VAL(resource->path), ZSTR_LEN(resource->path)); in php_stream_ftp_mkdir()
1068 e = buf + ZSTR_LEN(resource->path); in php_stream_ftp_mkdir()
H A Dcyr_convert.c283 php_convert_cyr_string((unsigned char *) ZSTR_VAL(str), ZSTR_LEN(str), fr_cs[0], to_cs[0]); in PHP_FUNCTION()
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_utils.c484 keylen = ZSTR_LEN(strkey); in phpdbg_parse_variable_with_arg()
599 phpdbg_xml(" name=\"%.*s\"", (int) ZSTR_LEN(key), ZSTR_VAL(key)); in phpdbg_xml_array_element_dump()
633 phpdbg_xml(" name=\"%.*s\" protection=\"public\"", (int) ZSTR_LEN(key), ZSTR_VAL(key)); in phpdbg_xml_object_property_dump()
705 …t refstatus=\"%s\" class=\"%.*s\" id=\"%d\" num=\"%d\">", COMMON, (int) ZSTR_LEN(class_name), ZSTR… in phpdbg_xml_var_dump()
823 for (i = 0; i < ZSTR_LEN(str); i++) { in phpdbg_short_zval_print()
829 ZSTR_LEN(str) <= maxlen - 2 ? (int) ZSTR_LEN(str) : (maxlen - 3), in phpdbg_short_zval_print()
830 ZSTR_VAL(str), ZSTR_LEN(str) <= maxlen - 2 ? 0 : '+'); in phpdbg_short_zval_print()
842 ZSTR_LEN(str) <= maxlen ? (int) ZSTR_LEN(str) : maxlen - 1, in phpdbg_short_zval_print()
843 ZSTR_VAL(str), ZSTR_LEN(str) <= maxlen ? 0 : '+'); in phpdbg_short_zval_print()
H A Dphpdbg_opcode.c48 ZSTR_LEN(var) <= 19 ? (int) ZSTR_LEN(var) : 18, in phpdbg_decode_op()
49 ZSTR_VAL(var), ZSTR_LEN(var) <= 19 ? 0 : '+'); in phpdbg_decode_op()
H A Dphpdbg_bp.c323 …if (!(pending = ((fileht = phpdbg_resolve_pending_file_break_ex(ZSTR_VAL(file), ZSTR_LEN(file), pa… in phpdbg_set_breakpoint_file()
348ZSTR_LEN(cur), filelen > ZSTR_LEN(cur) ? file[filelen - ZSTR_LEN(cur) - 1] : '?', filelen > ZSTR_L… in phpdbg_resolve_pending_file_break_ex()
351 # define WIN32_PATH_CHECK file[filelen - ZSTR_LEN(cur) - 1] == '\\' in phpdbg_resolve_pending_file_break_ex()
356ZSTR_LEN(cur) < filelen && (file[filelen - ZSTR_LEN(cur) - 1] == '/' || WIN32_PATH_CHECK)) || file… in phpdbg_resolve_pending_file_break_ex()
595 …tion_name == NULL && op_array->scope == NULL && new_break->class_len == ZSTR_LEN(op_array->filenam… in phpdbg_resolve_opline_break()
947 …phpdbg_debug("Op at: %.*s %d\n", ZSTR_LEN(op_array->filename), ZSTR_VAL(op_array->filename), (*EG(… in phpdbg_find_breakpoint_file()
1048 len = ops->function_name ? ZSTR_LEN(ops->function_name) : strlen(str); in phpdbg_find_breakpoint_param()
1078 size_t lengths[2] = { strlen(param->method.class), ZSTR_LEN(ops->scope->name) }; in phpdbg_find_breakpoint_param()
1081 lengths[1] = ZSTR_LEN(ops->function_name); in phpdbg_find_breakpoint_param()
H A Dphpdbg_print.c190 zend_str_tolower_copy(ZSTR_VAL(lcname), param->method.name, ZSTR_LEN(lcname)); in PHPDBG_PRINT()
239 zend_str_tolower_copy(ZSTR_VAL(lcname), func_name, ZSTR_LEN(lcname)); in PHPDBG_PRINT()
283 …phpdbg_out("function name: %.*s\n", (int) ZSTR_LEN(func->op_array.function_name), ZSTR_VAL(func->o… in phpdbg_print_opcodes_function()
395 phpdbg_print_opcodes_function(ZSTR_VAL(name), ZSTR_LEN(name)); in phpdbg_print_opcodes()
/PHP-7.4/ext/json/
H A Djson_encoder.c180 if (ZSTR_VAL(key)[0] == '\0' && ZSTR_LEN(key) > 0 && Z_TYPE_P(val) == IS_OBJECT) { in php_json_encode_array()
194 if (php_json_escape_string(buf, ZSTR_VAL(key), ZSTR_LEN(key), in php_json_encode_array()
198 ZSTR_LEN(buf->s) -= 4; in php_json_encode_array()
287 checkpoint = buf->s ? ZSTR_LEN(buf->s) : 0; in php_json_escape_string()
331 ZSTR_LEN(buf->s) = checkpoint; in php_json_escape_string()
/PHP-7.4/ext/bcmath/libbcmath/src/
H A Dnum2str.c81 ZSTR_LEN(str) = sptr - (char *)ZSTR_VAL(str);
/PHP-7.4/ext/opcache/
H A Dzend_file_cache.c226 len = ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(ZSTR_LEN(str)));
229 if (info->str_size + len > ZSTR_LEN((zend_string*)ZCG(mem))) {
250 size_t size = _ZSTR_STRUCT_SIZE(ZSTR_LEN(str));
839 filename = emalloc(len + 33 + ZSTR_LEN(script_path) + sizeof(SUFFIX));
843 memcpy(filename + len + 33, ZSTR_VAL(script_path), ZSTR_LEN(script_path));
844 memcpy(filename + len + 33 + ZSTR_LEN(script_path), SUFFIX, sizeof(SUFFIX));
848 filename = emalloc(len + 33 + 33 + ZSTR_LEN(script_path) + sizeof(SUFFIX));
862 if (ZSTR_LEN(script_path) - 7 >= 2 && ':' == ZSTR_VAL(script_path)[8]) {
871 } else if (ZSTR_LEN(script_path) >= 2 && ':' == ZSTR_VAL(script_path)[1]) {
879 memcpy(filename + len + 33, ZSTR_VAL(script_path), ZSTR_LEN(script_path));
[all …]
/PHP-7.4/ext/zend_test/
H A Dtest.c86 res = zend_string_alloc(ZSTR_LEN(str), 0); in ZEND_FUNCTION()
87 memcpy(ZSTR_VAL(res), ZSTR_VAL(str), ZSTR_LEN(str)); in ZEND_FUNCTION()
102 ZSTR_VAL(str)[ZSTR_LEN(str)] = '\0'; in ZEND_FUNCTION()
/PHP-7.4/ext/phar/
H A Dphar.c51 if (ZSTR_LEN(entry->name) == sizeof("phar.readonly")-1) { in ZEND_INI_MH()
1360 fname_len = ZSTR_LEN(actual); in phar_create_or_parse_filename()
1534 fname_len = ZSTR_LEN(actual); in phar_open_from_filename()
1990 …if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && ((uint32_t)filename_len == ZSTR_LEN in phar_detect_phar_fname_ext()
1991 || filename[ZSTR_LEN(str_key)] == '/' || filename[ZSTR_LEN(str_key)] == '\0')) { in phar_detect_phar_fname_ext()
2003 …if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && ((uint32_t)filename_len == ZSTR_LEN in phar_detect_phar_fname_ext()
2004 || filename[ZSTR_LEN(str_key)] == '/' || filename[ZSTR_LEN(str_key)] == '\0')) { in phar_detect_phar_fname_ext()
2328 fname_len = ZSTR_LEN(actual); in phar_open_executed_filename()
2603 len = ZSTR_LEN(suser_stub); in phar_flush()
2652 phar->halt_offset = ZSTR_LEN(newstub); in phar_flush()
[all …]
/PHP-7.4/ext/session/
H A Dsession.c322 ZSTR_VAL(outid), ZSTR_LEN(outid), in php_session_create_id()
478 && ZSTR_LEN(val) == ZSTR_LEN(PS(session_vars)) in php_session_save_current_state()
657 …if ((!ZSTR_LEN(new_value) || is_numeric_string(ZSTR_VAL(new_value), ZSTR_LEN(new_value), NULL, NUL… in PHP_INI_MH()
777 if(ZSTR_LEN(new_value) > 0 && ZSTR_VAL(new_value)[ZSTR_LEN(new_value)-1] == '%') { in PHP_INI_MH()
897 if (ZSTR_LEN(key) > PS_BIN_MAX) continue; in PS_SERIALIZER_ENCODE_FUNC()
898 smart_str_appendc(&buf, (unsigned char)ZSTR_LEN(key)); in PS_SERIALIZER_ENCODE_FUNC()
899 smart_str_appendl(&buf, ZSTR_VAL(key), ZSTR_LEN(key)); in PS_SERIALIZER_ENCODE_FUNC()
963 smart_str_appendl(&buf, ZSTR_VAL(key), ZSTR_LEN(key)); in PS_SERIALIZER_ENCODE_FUNC()
1376 sapi_add_header_ex(estrndup(ZSTR_VAL(ncookie.s), ZSTR_LEN(ncookie.s)), ZSTR_LEN(ncookie.s), 0, 0); in php_session_send_cookie()
2150 if (UNEXPECTED(len != ZSTR_LEN(PS(id)))) { in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/intl/
H A Dintl_convertcpp.cpp85 ZSTR_LEN(u8res) = actual_len; in intl_charFromString()
/PHP-7.4/ext/filter/
H A Dsanitizing_filters.c104 ZSTR_LEN(str) = p - (unsigned char *)ZSTR_VAL(str); in php_filter_encode_url()
135 ZSTR_LEN(buf) = c; in php_filter_strip()
174 ZSTR_LEN(buf) = c; in filter_map_apply()

Completed in 122 milliseconds

12345678