/PHP-7.4/ext/phar/ |
H A D | dirstream.c | 163 …result = zend_binary_strcmp(ZSTR_VAL(f->key), ZSTR_LEN(f->key), ZSTR_VAL(s->key), ZSTR_LEN(s->key)… in phar_compare_dir_name() 229 memcpy(entry, ZSTR_VAL(str_key), found - ZSTR_VAL(str_key)); in phar_make_dirstream() 230 keylen = found - ZSTR_VAL(str_key); in phar_make_dirstream() 234 memcpy(entry, ZSTR_VAL(str_key), keylen); in phar_make_dirstream() 240 if (0 != memcmp(ZSTR_VAL(str_key), dir, dirlen)) { in phar_make_dirstream() 247 if (ZSTR_VAL(str_key)[dirlen] != '/') { in phar_make_dirstream() 256 save = ZSTR_VAL(str_key); in phar_make_dirstream() 618 memcmp(ZSTR_VAL(str_key), ZSTR_VAL(resource->path)+1, path_len) == 0 && in phar_wrapper_rmdir() 619 IS_SLASH(ZSTR_VAL(str_key)[path_len])) { in phar_wrapper_rmdir() 635 memcmp(ZSTR_VAL(str_key), ZSTR_VAL(resource->path)+1, path_len) == 0 && in phar_wrapper_rmdir() [all …]
|
H A D | stream.c | 894 memcmp(ZSTR_VAL(str_key), ZSTR_VAL(resource_from->path)+1, from_len) == 0 && in phar_wrapper_rename() 895 IS_SLASH(ZSTR_VAL(str_key)[from_len])) { in phar_wrapper_rename() 898 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename() 899 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename() 900 ZSTR_VAL(new_str_key)[ZSTR_LEN(new_str_key)] = 0; in phar_wrapper_rename() 919 memcmp(ZSTR_VAL(str_key), ZSTR_VAL(resource_from->path)+1, from_len) == 0 && in phar_wrapper_rename() 923 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename() 924 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename() 937 memcmp(ZSTR_VAL(str_key), ZSTR_VAL(resource_from->path)+1, from_len) == 0 && in phar_wrapper_rename() 941 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename() [all …]
|
/PHP-7.4/ext/standard/ |
H A D | string.c | 1424 memcpy(ZSTR_VAL(res), ZSTR_VAL(s), c - (unsigned char*)ZSTR_VAL(s)); in php_string_toupper() 1426 r = c + (ZSTR_VAL(res) - ZSTR_VAL(s)); in php_string_toupper() 1489 memcpy(ZSTR_VAL(res), ZSTR_VAL(s), c - (unsigned char*)ZSTR_VAL(s)); in php_string_tolower() 1491 r = c + (ZSTR_VAL(res) - ZSTR_VAL(s)); in php_string_tolower() 2200 *ZSTR_VAL(ord_needle) = tolower(*ZSTR_VAL(needle)); 2706 memcpy(ZSTR_VAL(result), ZSTR_VAL(orig_str), f); 2961 memcpy(ZSTR_VAL(new_str), ZSTR_VAL(str), i); 2967 ZSTR_VAL(new_str)[i] = (ZSTR_VAL(str)[i] != ch_from) ? ZSTR_VAL(str)[i] : ch_to; 2981 memcpy(ZSTR_VAL(new_str), ZSTR_VAL(str), i); 3988 memcpy(ZSTR_VAL(new_str), ZSTR_VAL(str), offset); [all …]
|
H A D | password.c | 120 ZSTR_VAL(ret)[length] = 0; in php_password_make_salt() 184 memcpy(ZSTR_VAL(salt), ZSTR_VAL(buffer), required_salt_len); in php_password_get_salt() 193 const char *h = ZSTR_VAL(hash); in php_password_bcrypt_valid() 249 status |= (ZSTR_VAL(ret)[i] ^ ZSTR_VAL(hash)[i]); in php_password_bcrypt_verify() 279 sprintf(ZSTR_VAL(hash), "%s%s", hash_format, ZSTR_VAL(salt)); in php_password_bcrypt_hash() 317 const char *p = ZSTR_VAL(hash); in extract_argon2_parameters() 432 ZSTR_VAL(password), in php_password_argon2_hash() 434 ZSTR_VAL(salt), in php_password_argon2_hash() 436 ZSTR_VAL(out), in php_password_argon2_hash() 438 ZSTR_VAL(encoded), in php_password_argon2_hash() [all …]
|
H A D | exec.c | 367 ZSTR_VAL(cmd)[y++] = '^'; in php_escape_shell_cmd() 377 ZSTR_VAL(cmd)[y] = '\0'; in php_escape_shell_cmd() 415 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg() 417 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg() 438 ZSTR_VAL(cmd)[y++] = ' '; in php_escape_shell_arg() 442 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg() 443 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_arg() 444 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg() 460 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg() 462 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg() [all …]
|
H A D | mail.c | 197 if (!strncasecmp("orig-date", ZSTR_VAL(key), ZSTR_LEN(key))) { in php_mail_build_headers() 204 if (!strncasecmp("from", ZSTR_VAL(key), ZSTR_LEN(key))) { in php_mail_build_headers() 211 if (!strncasecmp("sender", ZSTR_VAL(key), ZSTR_LEN(key))) { in php_mail_build_headers() 218 if (!strncasecmp("reply-to", ZSTR_VAL(key), ZSTR_LEN(key))) { in php_mail_build_headers() 225 if (!strncasecmp("to", ZSTR_VAL(key), ZSTR_LEN(key))) { in php_mail_build_headers() 229 if (!strncasecmp("cc", ZSTR_VAL(key), ZSTR_LEN(key))) { in php_mail_build_headers() 236 if (!strncasecmp("bcc", ZSTR_VAL(key), ZSTR_LEN(key))) { in php_mail_build_headers() 259 if (!strncasecmp("subject", ZSTR_VAL(key), ZSTR_LEN(key))) { in php_mail_build_headers() 322 MAIL_ASCIIZ_CHECK(ZSTR_VAL(extra_cmd), ZSTR_LEN(extra_cmd)); in PHP_FUNCTION() 368 extra_cmd = php_escape_shell_cmd(ZSTR_VAL(extra_cmd)); in PHP_FUNCTION() [all …]
|
H A D | uuencode.c | 76 p = (unsigned char *) ZSTR_VAL(dest); in php_uuencode() 125 dest = zend_string_truncate(dest, (char *) p - ZSTR_VAL(dest), 0); in php_uuencode() 137 p = ZSTR_VAL(dest); in php_uudecode() 176 assert(p >= ZSTR_VAL(dest)); in php_uudecode() 177 if ((len = total_len) > (size_t)(p - ZSTR_VAL(dest))) { in php_uudecode() 188 ZSTR_VAL(dest)[ZSTR_LEN(dest)] = '\0'; in php_uudecode() 210 RETURN_STR(php_uuencode(ZSTR_VAL(src), ZSTR_LEN(src))); in PHP_FUNCTION() 226 if ((dest = php_uudecode(ZSTR_VAL(src), ZSTR_LEN(src))) == NULL) { in PHP_FUNCTION()
|
H A D | quot_print.c | 98 i = length; p1 = str; p2 = (unsigned char*)ZSTR_VAL(retval); in php_quot_print_decode() 154 d = (unsigned char*)ZSTR_VAL(ret); in php_quot_print_encode() 188 ret = zend_string_truncate(ret, d - (unsigned char*)ZSTR_VAL(ret), 0); in php_quot_print_encode() 216 str_in = ZSTR_VAL(arg1); in PHP_FUNCTION() 225 ZSTR_VAL(str_out)[j++] = (php_hex2int((int) str_in[i + 1]) << 4) in PHP_FUNCTION() 247 ZSTR_VAL(str_out)[j++] = str_in[i++]; in PHP_FUNCTION() 252 ZSTR_VAL(str_out)[j++] = str_in[i++]; in PHP_FUNCTION() 255 ZSTR_VAL(str_out)[j] = '\0'; in PHP_FUNCTION() 276 new_str = php_quot_print_encode((unsigned char *)ZSTR_VAL(str), ZSTR_LEN(str)); in PHP_FUNCTION()
|
H A D | url_scanner_ex.re | 243 } else if (*(ZSTR_VAL(url->s)) == '/' && *(ZSTR_VAL(url->s)+1) == '/') { 247 smart_str_appends(dest, ZSTR_VAL(url_parts->user)); 301 ZSTR_VAL(ctx->arg.s)[ZSTR_LEN(ctx->arg.s)] = '\0'; 363 colon = strchr(ZSTR_VAL(host_tmp), ':'); 365 ZSTR_LEN(host_tmp) = colon - ZSTR_VAL(host_tmp); 366 ZSTR_VAL(host_tmp)[ZSTR_LEN(host_tmp)] = '\0'; 368 if (!strcasecmp(ZSTR_VAL(host_tmp), target)) { 459 ZSTR_VAL(ctx->tag.s)[i] = tolower((int)(unsigned char)ZSTR_VAL(ctx->tag.s)[i]); 505 YYCURSOR = ZSTR_VAL(ctx->buf.s); 886 ZSTR_VAL(url_app.s), ZSTR_LEN(url_app.s), [all …]
|
H A D | http_fopen_wrapper.c | 253 smart_str_appends(&header, ZSTR_VAL(resource->host)); in php_stream_url_wrap_http_ex() 464 php_strtolower(ZSTR_VAL(tmp), ZSTR_LEN(tmp)); in php_stream_url_wrap_http_ex() 465 t = ZSTR_VAL(tmp); in php_stream_url_wrap_http_ex() 532 strcpy(scratch, ZSTR_VAL(resource->user)); in php_stream_url_wrap_http_ex() 538 strcat(scratch, ZSTR_VAL(resource->pass)); in php_stream_url_wrap_http_ex() 544 smart_str_appends(&req_buf, ZSTR_VAL(stmp)); in php_stream_url_wrap_http_ex() 854 s = ZSTR_VAL(resource->path); in php_stream_url_wrap_http_ex() 858 s = ZSTR_VAL(resource->path); in php_stream_url_wrap_http_ex() 865 ZSTR_VAL(resource->path)[0] == '/' && in php_stream_url_wrap_http_ex() 866 ZSTR_VAL(resource->path)[1] == '\0') { in php_stream_url_wrap_http_ex() [all …]
|
H A D | php_mail.h | 35 if (!strncasecmp(target, ZSTR_VAL(key), ZSTR_LEN(key))) { \ 41 …LL, E_WARNING, "Extra header element '%s' cannot be other than string or array.", ZSTR_VAL(key)); \ 53 …LL, E_WARNING, "Extra header element '%s' cannot be other than string or array.", ZSTR_VAL(key)); \
|
H A D | browscap.c | 98 if (is_placeholder(ZSTR_VAL(pattern)[i])) { in browscap_compute_prefix_len() 111 if (!is_placeholder(ZSTR_VAL(pattern)[i])) { in browscap_compute_contains() 115 !is_placeholder(ZSTR_VAL(pattern)[i + 1])) { in browscap_compute_contains() 124 if (is_placeholder(ZSTR_VAL(pattern)[i])) { in browscap_compute_contains() 136 switch (ZSTR_VAL(pattern)[i]) { in browscap_compute_regex_len() 161 t = ZSTR_VAL(res); in browscap_convert_pattern() 248 zend_str_tolower_copy(ZSTR_VAL(lcname), ZSTR_VAL(str), ZSTR_LEN(str)); in browscap_intern_str_ci() 568 ZSTR_VAL(agent_name), entry->prefix_len, in browser_reg_compare() 575 zend_str_tolower_copy(ZSTR_VAL(pattern_lc), ZSTR_VAL(entry->pattern), ZSTR_LEN(entry->pattern)); in browser_reg_compare() 626 switch (ZSTR_VAL(previous_match)[i]) { in browser_reg_compare() [all …]
|
H A D | pack.c | 476 memcpy(&ZSTR_VAL(output)[outputpos], ZSTR_VAL(str), in PHP_FUNCTION() 490 char *v = ZSTR_VAL(str); in PHP_FUNCTION() 513 ZSTR_VAL(output)[++outputpos] = 0; in PHP_FUNCTION() 518 ZSTR_VAL(output)[outputpos] |= (n << nibbleshift); in PHP_FUNCTION() 605 memcpy(&ZSTR_VAL(output)[outputpos], &v, sizeof(v)); in PHP_FUNCTION() 661 memset(&ZSTR_VAL(output)[outputpos], '\0', arg); in PHP_FUNCTION() 684 ZSTR_VAL(output)[outputpos] = '\0'; in PHP_FUNCTION() 738 format = ZSTR_VAL(formatarg); in PHP_FUNCTION() 740 input = ZSTR_VAL(inputarg); in PHP_FUNCTION() 1006 ZSTR_VAL(buf)[opos] = cc; in PHP_FUNCTION() [all …]
|
H A D | url.c | 237 php_replace_controlchars_ex(ZSTR_VAL(ret->user), ZSTR_LEN(ret->user)); in php_url_parse_ex2() 241 php_replace_controlchars_ex(ZSTR_VAL(ret->pass), ZSTR_LEN(ret->pass)); in php_url_parse_ex2() 244 php_replace_controlchars_ex(ZSTR_VAL(ret->user), ZSTR_LEN(ret->user)); in php_url_parse_ex2() 293 php_replace_controlchars_ex(ZSTR_VAL(ret->host), ZSTR_LEN(ret->host)); in php_url_parse_ex2() 326 php_replace_controlchars_ex(ZSTR_VAL(ret->path), ZSTR_LEN(ret->path)); in php_url_parse_ex2() 478 to = (unsigned char*)ZSTR_VAL(start); in php_url_encode() 524 RETURN_STR(php_url_encode(ZSTR_VAL(in_str), ZSTR_LEN(in_str))); in PHP_FUNCTION() 538 out_str = zend_string_init(ZSTR_VAL(in_str), ZSTR_LEN(in_str), 0); in PHP_FUNCTION() 585 ret = ZSTR_VAL(str); 623 RETURN_STR(php_raw_url_encode(ZSTR_VAL(in_str), ZSTR_LEN(in_str))); [all …]
|
H A D | net.c | 57 …if (inet_ntop(AF_INET6, &(((struct sockaddr_in6*)addr)->sin6_addr), ZSTR_VAL(ret), INET6_ADDRSTRLE… in php_inet_ntop() 58 ZSTR_LEN(ret) = strlen(ZSTR_VAL(ret)); in php_inet_ntop() 67 …if (inet_ntop(AF_INET, &(((struct sockaddr_in*)addr)->sin_addr), ZSTR_VAL(ret), INET_ADDRSTRLEN)) { in php_inet_ntop() 68 ZSTR_LEN(ret) = strlen(ZSTR_VAL(ret)); in php_inet_ntop() 86 if (getnameinfo(addr, addrlen, ZSTR_VAL(ret), NI_MAXHOST, NULL, 0, NI_NUMERICHOST) == SUCCESS) { in php_inet_ntop() 88 char *colon = strchr(ZSTR_VAL(ret), '%'); in php_inet_ntop() 90 ZSTR_LEN(ret) = strlen(ZSTR_VAL(ret)); in php_inet_ntop() 206 char *s = ZSTR_VAL(mac); in PHP_FUNCTION() 212 ZSTR_LEN(mac) = s - ZSTR_VAL(mac); in PHP_FUNCTION()
|
/PHP-7.4/sapi/phpdbg/ |
H A D | phpdbg_print.c | 68 ZSTR_VAL(method->common.scope->name), in phpdbg_print_function_helper() 69 ZSTR_VAL(method->common.function_name), in phpdbg_print_function_helper() 70 op_array->filename ? ZSTR_VAL(op_array->filename) : "unknown", in phpdbg_print_function_helper() 78 op_array->filename ? ZSTR_VAL(op_array->filename) : "unknown", in phpdbg_print_function_helper() 130 …hod=\"%s::%s\" num=\"%d\"", "Stack in %s::%s() (%d ops)", ZSTR_VAL(ops->scope->name), ZSTR_VAL(ops… in PHPDBG_PRINT() 162 ZSTR_VAL(ce->name), in PHPDBG_PRINT() 195 ZSTR_VAL(fbc->common.function_name), in PHPDBG_PRINT() 246 ZSTR_VAL(fbc->common.function_name), in PHPDBG_PRINT() 335 ZSTR_VAL(ce->name)); in phpdbg_print_opcodes_ce() 348 phpdbg_out("%s", ZSTR_VAL(method->common.function_name)); in phpdbg_print_opcodes_ce() [all …]
|
/PHP-7.4/ext/sodium/ |
H A D | libsodium.c | 924 ZSTR_VAL(hash)[hash_len] = 0; in PHP_FUNCTION() 964 ZSTR_VAL(state)[state_len] = 0; in PHP_FUNCTION() 1052 ZSTR_VAL(hash)[hash_len] = 0; in PHP_FUNCTION() 1660 ZSTR_VAL(msg)[msg_real_len] = 0; in PHP_FUNCTION() 1905 ZSTR_VAL(hash)[hash_len] = 0; in PHP_FUNCTION() 2071 ZSTR_VAL(hash)[hash_len] = 0; in PHP_FUNCTION() 2292 ZSTR_VAL(msg)[msg_real_len] = 0; in PHP_FUNCTION() 2418 ZSTR_VAL(msg)[msg_real_len] = 0; in PHP_FUNCTION() 2552 ZSTR_VAL(msg)[msg_real_len] = 0; in PHP_FUNCTION() 2708 ZSTR_VAL(hex)[hex_len] = 0; in PHP_FUNCTION() [all …]
|
H A D | sodium_pwhash.c | 88 …if (crypto_pwhash_str_alg(ZSTR_VAL(ret), ZSTR_VAL(password), ZSTR_LEN(password), opslimit, memlimi… in php_sodium_argon2_hash() 94 ZSTR_LEN(ret) = strlen(ZSTR_VAL(ret)); in php_sodium_argon2_hash() 95 ZSTR_VAL(ret)[ZSTR_LEN(ret)] = 0; in php_sodium_argon2_hash() 104 return crypto_pwhash_str_verify(ZSTR_VAL(hash), ZSTR_VAL(password), ZSTR_LEN(password)) == 0; in php_sodium_argon2_verify() 113 return crypto_pwhash_str_needs_rehash(ZSTR_VAL(hash), opslimit, memlimit); in php_sodium_argon2_needs_rehash() 126 p = ZSTR_VAL(hash); in php_sodium_argon2_get_info()
|
/PHP-7.4/ext/bcmath/ |
H A D | bcmath.c | 236 php_str2num(&first, ZSTR_VAL(left)); in PHP_FUNCTION() 237 php_str2num(&second, ZSTR_VAL(right)); in PHP_FUNCTION() 271 php_str2num(&first, ZSTR_VAL(left)); in PHP_FUNCTION() 272 php_str2num(&second, ZSTR_VAL(right)); in PHP_FUNCTION() 306 php_str2num(&first, ZSTR_VAL(left)); in PHP_FUNCTION() 307 php_str2num(&second, ZSTR_VAL(right)); in PHP_FUNCTION() 341 php_str2num(&first, ZSTR_VAL(left)); in PHP_FUNCTION() 383 php_str2num(&first, ZSTR_VAL(left)); in PHP_FUNCTION() 423 php_str2num(&first, ZSTR_VAL(left)); in PHP_FUNCTION() 466 php_str2num(&first, ZSTR_VAL(left)); in PHP_FUNCTION() [all …]
|
/PHP-7.4/Zend/ |
H A D | zend_inheritance.c | 182 ZSTR_VAL(parent->name), ZSTR_VAL(parent->constructor->common.function_name), in do_inherit_parent_constructor() 183 ZSTR_VAL(ce->name), ZSTR_VAL(ce->constructor->common.function_name)); in do_inherit_parent_constructor() 701 ZSTR_VAL(child_prototype), ZSTR_VAL(parent_prototype), ZSTR_VAL(unresolved_class)); in emit_incompatible_method_error() 705 ZSTR_VAL(child_prototype), error_verb, ZSTR_VAL(parent_prototype)); in emit_incompatible_method_error() 943 ZSTR_VAL(child->ce->name), in emit_incompatible_property_error() 993 ZSTR_VAL(ce->name), in do_inherit_property() 994 ZSTR_VAL(key), in do_inherit_property() 1544 if (!memcmp(ZSTR_VAL(mname), ZSTR_VAL(lowercase_name), ZSTR_LEN(mname))) { in zend_add_magic_methods() 1607 ZSTR_VAL(fn->common.scope->name), ZSTR_VAL(fn->common.function_name), in zend_add_trait_method() 2015 ZSTR_VAL(prop_name), in zend_do_traits_property_binding() [all …]
|
H A D | zend_string.h | 52 #define ZSTR_VAL(zstr) (zstr)->val in END_EXTERN_C() macro 91 memcpy(ZSTR_VAL(str), (s), (len)); \ 92 ZSTR_VAL(str)[(len)] = '\0'; \ 160 memcpy(ZSTR_VAL(ret), str, len); in zend_string_init() 161 ZSTR_VAL(ret)[len] = '\0'; in zend_string_init() 195 memcpy(ZSTR_VAL(ret), ZSTR_VAL(s), MIN(len, ZSTR_LEN(s)) + 1); in zend_string_realloc() 216 memcpy(ZSTR_VAL(ret), ZSTR_VAL(s), ZSTR_LEN(s) + 1); in zend_string_extend() 237 memcpy(ZSTR_VAL(ret), ZSTR_VAL(s), len + 1); in zend_string_truncate() 257 memcpy(ZSTR_VAL(ret), ZSTR_VAL(s), MIN((n * m) + l, ZSTR_LEN(s)) + 1); in zend_string_safe_realloc() 311 return !memcmp(ZSTR_VAL(s1), ZSTR_VAL(s2), ZSTR_LEN(s1)); in END_EXTERN_C() [all …]
|
H A D | zend_constants.c | 282 zend_str_tolower_copy(lcname, ZSTR_VAL(name), 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() 309 size_t shortname_offset = ns_sep - ZSTR_VAL(c->name) + 1; in is_access_deprecated() 313 ZSTR_VAL(c->name) + shortname_offset, in is_access_deprecated() 327 const char *name = ZSTR_VAL(cname); in zend_get_constant_ex() 375 …zend_throw_error(NULL, "Undefined class constant '%s::%s'", ZSTR_VAL(class_name), ZSTR_VAL(constan… in zend_get_constant_ex() 382 …t %s::%s", zend_visibility_string(Z_ACCESS_FLAGS(c->value)), ZSTR_VAL(class_name), ZSTR_VAL(consta… in zend_get_constant_ex() 394 …r(NULL, "Cannot declare self-referencing constant '%s::%s'", ZSTR_VAL(class_name), ZSTR_VAL(consta… in zend_get_constant_ex() 469 ZSTR_VAL(c->name)); in zend_get_constant_ex() 504 char *slash = strrchr(ZSTR_VAL(c->name), '\\'); in zend_register_constant() [all …]
|
H A D | zend_ini.c | 194 …return zend_binary_strcasecmp(ZSTR_VAL(f->key), ZSTR_LEN(f->key), ZSTR_VAL(s->key), ZSTR_LEN(s->ke… in ini_key_compare() 504 return atoi(ZSTR_VAL(str)) != 0; in zend_ini_parse_bool() 540 value = ZSTR_VAL(ini_entry->orig_value); in ZEND_INI_DISP() 542 value = ZSTR_VAL(ini_entry->value); in ZEND_INI_DISP() 567 value = ZSTR_VAL(ini_entry->orig_value); in ZEND_INI_DISP() 569 value = ZSTR_VAL(ini_entry->value); in ZEND_INI_DISP() 616 *p = zend_atol(ZSTR_VAL(new_value), ZSTR_LEN(new_value)); in ZEND_INI_MH() 657 *p = zend_strtod(ZSTR_VAL(new_value), NULL); in ZEND_INI_MH() 675 *p = new_value ? ZSTR_VAL(new_value) : NULL; in ZEND_INI_MH() 691 if (new_value && !ZSTR_VAL(new_value)[0]) { in ZEND_INI_MH() [all …]
|
/PHP-7.4/ext/soap/ |
H A D | php_http.c | 182 host = ZSTR_VAL(phpurl->host); in http_connect() 496 strcmp(ZSTR_VAL(orig->host), ZSTR_VAL(phpurl->host)) == 0 && in make_http_soap_request() 965 cookie_itt = ZSTR_VAL(http_headers); in make_http_soap_request() 1022 char *t = phpurl->path?ZSTR_VAL(phpurl->path):"/"; in make_http_soap_request() 1130 char *t = ZSTR_VAL(phpurl->path); in make_http_soap_request() 1134 strncpy(ZSTR_VAL(s), t, (p - t) + 1); in make_http_soap_request() 1135 ZSTR_VAL(s)[(p - t) + 1] = 0; in make_http_soap_request() 1136 strcat(ZSTR_VAL(s), ZSTR_VAL(new_url->path)); in make_http_soap_request() 1142 ZSTR_VAL(s)[0] = '/'; in make_http_soap_request() 1143 ZSTR_VAL(s)[1] = 0; in make_http_soap_request() [all …]
|
/PHP-7.4/ext/hash/ |
H A D | hash.c | 171 ZSTR_VAL(digest)[ops->digest_size] = 0; in php_hash_do_hash() 176 php_hash_bin2hex(ZSTR_VAL(hex_digest), (unsigned char *) ZSTR_VAL(digest), ops->digest_size); in php_hash_do_hash() 313 ZSTR_VAL(digest)[ops->digest_size] = 0; in php_hash_do_hash_hmac() 318 php_hash_bin2hex(ZSTR_VAL(hex_digest), (unsigned char *) ZSTR_VAL(digest), ops->digest_size); in php_hash_do_hash_hmac() 401 memcpy(K, ZSTR_VAL(key), ZSTR_LEN(key)); in PHP_FUNCTION() 555 ZSTR_VAL(digest)[digest_len] = 0; in PHP_FUNCTION() 566 php_hash_bin2hex(ZSTR_VAL(hex_digest), (unsigned char *) ZSTR_VAL(digest), digest_len); in PHP_FUNCTION() 567 ZSTR_VAL(hex_digest)[2 * digest_len] = 0; in PHP_FUNCTION() 716 ZSTR_VAL(returnval)[length] = 0; in PHP_FUNCTION() 839 memcpy(ZSTR_VAL(returnval), result, length); in PHP_FUNCTION() [all …]
|