Home
last modified time | relevance | path

Searched refs:ZSTR_VAL (Results 176 – 200 of 258) sorted by path

1234567891011

/PHP-7.4/ext/standard/
H A Dassert.c69 memcpy(ASSERTG(cb), ZSTR_VAL(new_value), ZSTR_LEN(new_value)); in PHP_INI_MH()
188 zend_throw_error(NULL, "Failure evaluating code: %s%s:\"%s\"", PHP_EOL, ZSTR_VAL(str), myeval); in PHP_FUNCTION()
253 zend_throw_exception(assertion_error_ce, ZSTR_VAL(str), E_ERROR); in PHP_FUNCTION()
266 php_error_docref(NULL, E_WARNING, "%s: \"%s\" failed", ZSTR_VAL(str), myeval); in PHP_FUNCTION()
268 php_error_docref(NULL, E_WARNING, "%s failed", ZSTR_VAL(str)); in PHP_FUNCTION()
H A Dbase64.c616 o = (unsigned char *)ZSTR_VAL(result); in php_base64_encode()
644 ZSTR_LEN(result) = (o - (unsigned char *)ZSTR_VAL(result)); in php_base64_encode()
657 o = (unsigned char *)ZSTR_VAL(result); in php_base64_encode_ssse3()
663 ZSTR_LEN(result) = (o - (unsigned char *)ZSTR_VAL(result)); in php_base64_encode_ssse3()
790 o = (unsigned char *)ZSTR_VAL(result); in php_base64_decode_ex()
847 if (!php_base64_decode_impl(c, length, (unsigned char*)ZSTR_VAL(result), &outl, strict)) { in php_base64_decode_ex()
866 o = (unsigned char *)ZSTR_VAL(result); in php_base64_decode_ex_ssse3()
870 if (!php_base64_decode_impl(c, length, (unsigned char*)ZSTR_VAL(result), &outl, strict)) { in php_base64_decode_ex_ssse3()
893 p = (unsigned char *)ZSTR_VAL(result); in php_base64_encode_default()
897 ZSTR_LEN(result) = (p - (unsigned char *)ZSTR_VAL(result)); in php_base64_encode_default()
[all …]
H A Dbase64.h73 return php_base64_encode((const unsigned char*)(ZSTR_VAL(str)), ZSTR_LEN(str)); in php_base64_encode_str()
80 return php_base64_decode_ex((const unsigned char*)(ZSTR_VAL(str)), ZSTR_LEN(str), 0); in php_base64_decode_str()
H A Dbasic_functions.c4409 argv[pos++] = estrdup(ZSTR_VAL(arg_str));
4444 opts->opt_name = estrdup(ZSTR_VAL(arg_str));
4700 str = zend_string_init(ZSTR_VAL(str), ZSTR_LEN(str), 0);
4705 add_assoc_str_ex(retval, ZSTR_VAL(key), ZSTR_LEN(key), str);
5419 RETVAL_INTERNED_STR(ZSTR_CHAR((zend_uchar)ZSTR_VAL(val)[0]));
5464 if (key == NULL || ZSTR_VAL(key)[0] != 0) {
5532 RETVAL_INTERNED_STR(ZSTR_CHAR((zend_uchar)ZSTR_VAL(val)[0]));
5545 if (_CHECK_PATH(ZSTR_VAL(varname), ZSTR_LEN(varname), "error_log") ||
5547 _CHECK_PATH(ZSTR_VAL(varname), ZSTR_LEN(varname), "java.home") ||
5548 _CHECK_PATH(ZSTR_VAL(varname), ZSTR_LEN(varname), "mail.log") ||
[all …]
H A Dbrowscap.c98 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 Dcyr_convert.c283 php_convert_cyr_string((unsigned char *) ZSTR_VAL(str), ZSTR_LEN(str), fr_cs[0], to_cs[0]); in PHP_FUNCTION()
H A Ddns.c588 memcpy(ZSTR_VAL(tp) + l2 , cp + l1 + 1, n); in php_parserr()
594 ZSTR_VAL(tp)[l2] = '\0'; in php_parserr()
H A Ddns_win32.c230 txt_dst = ZSTR_VAL(txt); in php_parserr()
H A Dexec.c367 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 Dfile.c676 bytes_written = php_stream_write(stream, ZSTR_VAL(str), ZSTR_LEN(str)); in PHP_FUNCTION()
765 s = ZSTR_VAL(target_buf); in PHP_FUNCTION()
766 e = ZSTR_VAL(target_buf) + ZSTR_LEN(target_buf); in PHP_FUNCTION()
789 if (p != ZSTR_VAL(target_buf) && eol_marker == '\n' && *(p - 1) == '\r') { in PHP_FUNCTION()
832 ZSTR_VAL(p)[63] = '\0'; in PHP_FUNCTION()
837 …if ((fd = php_open_temporary_fd_ex(dir, ZSTR_VAL(p), &opened_path, PHP_TMP_FILE_OPEN_BASEDIR_CHECK… in PHP_FUNCTION()
1044 if (php_stream_get_line(stream, ZSTR_VAL(str), len, &line_len) == NULL) { in PHP_FUNCTION()
1850 #define FPUTCSV_FLD_CHK(c) memchr(ZSTR_VAL(field_str), c, ZSTR_LEN(field_str))
1943 char *ch = ZSTR_VAL(field_str); in php_fputcsv()
1973 ret = php_stream_write(stream, ZSTR_VAL(csvline.s), ZSTR_LEN(csvline.s)); in php_fputcsv()
H A Dfilters.c183 memcpy((char *)inst->allowed_tags, ZSTR_VAL(allowed_tags), ZSTR_LEN(allowed_tags) + 1); in php_strip_tags_filter_ctor()
1229 memcpy(*pretval, ZSTR_VAL(str), ZSTR_LEN(str) + 1); in php_conv_get_string_prop_ex()
H A Dformatted_print.c61 ZSTR_VAL(*buffer)[(*pos)++] = add; in php_sprintf_appendchar()
79 memcpy(ZSTR_VAL(*buffer) + (*pos), add, len); in php_sprintf_appendchars()
121 ZSTR_VAL(*buffer)[(*pos)++] = (neg) ? '-' : '+'; in php_sprintf_appendstring()
127 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
131 memcpy(&ZSTR_VAL(*buffer)[*pos], add, copy_len + 1); in php_sprintf_appendstring()
135 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
545 ZSTR_VAL(str), in php_formatted_print()
635 ZSTR_VAL(result)[outpos]=0; in php_formatted_print()
728 rlen = PHPWRITE(ZSTR_VAL(result), ZSTR_LEN(result)); in PHP_FUNCTION()
755 rlen = PHPWRITE(ZSTR_VAL(result), ZSTR_LEN(result)); in PHP_FUNCTION()
[all …]
H A Dfsock.c89 …ct to %s:" ZEND_LONG_FMT " (%s)", host, port, errstr == NULL ? "Unknown error" : ZSTR_VAL(errstr)); in php_fsockopen_stream()
H A Dftp_fopen_wrapper.c249 PHP_FTP_CNTRL_CHK(ZSTR_VAL(resource->user), ZSTR_LEN(resource->user), "Invalid login %s") in php_ftp_fopen_connect()
251 php_stream_printf(stream, "USER %s\r\n", ZSTR_VAL(resource->user)); in php_ftp_fopen_connect()
268 php_stream_printf(stream, "PASS %s\r\n", ZSTR_VAL(resource->pass)); in php_ftp_fopen_connect()
478 php_stream_printf(stream, "SIZE %s\r\n", ZSTR_VAL(resource->path)); in php_stream_url_wrap_ftp()
507 php_stream_printf(stream, "DELE %s\r\n", ZSTR_VAL(resource->path)); in php_stream_url_wrap_ftp()
555 hoststart = ZSTR_VAL(resource->host); in php_stream_url_wrap_ftp()
640 memcpy(ent->d_name, ZSTR_VAL(basename), tmp_len); in php_ftp_dirstream_read()
729 hoststart = ZSTR_VAL(resource->host); in php_stream_ftp_opendir()
1061 php_stream_printf(stream, "MKD %s\r\n", ZSTR_VAL(resource->path)); in php_stream_ftp_mkdir()
1067 buf = estrndup(ZSTR_VAL(resource->path), ZSTR_LEN(resource->path)); in php_stream_ftp_mkdir()
[all …]
H A Dhead.c89 …} else if (strpbrk(ZSTR_VAL(name), "=,; \t\r\n\013\014") != NULL) { /* man isspace for \013 and … in php_setcookie()
95 strpbrk(ZSTR_VAL(value), ",; \t\r\n\013\014") != NULL) { /* man isspace for \013 and \014 */ in php_setcookie()
100 …if (path && strpbrk(ZSTR_VAL(path), ",; \t\r\n\013\014") != NULL) { /* man isspace for \013 and \0… in php_setcookie()
105 …if (domain && strpbrk(ZSTR_VAL(domain), ",; \t\r\n\013\014") != NULL) { /* man isspace for \013 an… in php_setcookie()
128 zend_string *encoded_value = php_raw_url_encode(ZSTR_VAL(value), ZSTR_LEN(value)); in php_setcookie()
141 p = zend_memrchr(ZSTR_VAL(dt), '-', ZSTR_LEN(dt)); in php_setcookie()
181 ctr.line = ZSTR_VAL(buf.s); in php_setcookie()
215 …php_error_docref(NULL, E_WARNING, "Unrecognized key '%s' found in the options array", ZSTR_VAL(key… in php_head_parse_cookie_options_array()
H A Dhtml.c907 for (p = old, q = ZSTR_VAL(ret); p < lim;) { in traverse_for_entities()
996 ZSTR_LEN(ret) = (size_t)(q - ZSTR_VAL(ret)); in traverse_for_entities()
1058 if (!memchr(ZSTR_VAL(str), '&', ZSTR_LEN(str))) { in php_unescape_html_entities()
1283 ZSTR_VAL(replaced)[len++] = '&'; in php_escape_html_entities_ex()
1284 memcpy(&ZSTR_VAL(replaced)[len], rep, rep_len); in php_escape_html_entities_ex()
1286 ZSTR_VAL(replaced)[len++] = ';'; in php_escape_html_entities_ex()
1320 memcpy(ZSTR_VAL(replaced) + len, mbsequence, mbseqlen); in php_escape_html_entities_ex()
1323 ZSTR_VAL(replaced)[len++] = mbsequence[0]; in php_escape_html_entities_ex()
1372 ZSTR_VAL(replaced)[len++] = '&'; in php_escape_html_entities_ex()
1375 ZSTR_VAL(replaced)[len++] = ';'; in php_escape_html_entities_ex()
[all …]
H A Dhttp.c69 prop_name = ZSTR_VAL(key); in php_url_encode_hash_ex()
77 if (ZSTR_VAL(key)[0] == '\0' && type != NULL) { in php_url_encode_hash_ex()
81 prop_name = ZSTR_VAL(key); in php_url_encode_hash_ex()
107 memcpy(p, ZSTR_VAL(ekey), ZSTR_LEN(ekey)); in php_url_encode_hash_ex()
217 ekey = php_raw_url_encode(ZSTR_VAL(str), ZSTR_LEN(str)); in php_url_encode_hash_ex()
219 ekey = php_url_encode(ZSTR_VAL(str), ZSTR_LEN(str)); in php_url_encode_hash_ex()
H A Dhttp_fopen_wrapper.c253 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 Dimage.c246 status = uncompress(buf, &szlength, (unsigned char *) ZSTR_VAL(bufz), ZSTR_LEN(bufz)); in php_handle_swc()
H A Dincomplete_class.c42 php_error_docref(NULL, error_type, INCOMPLETE_CLASS_MSG, ZSTR_VAL(class_name)); in incomplete_class_message()
H A Dinfo.c63 written = php_output_write(ZSTR_VAL(new_str), ZSTR_LEN(new_str)); in php_info_print_html_esc()
113 php_info_print_html_esc(ZSTR_VAL(key), ZSTR_LEN(key)); in php_info_print_stream_hash()
115 php_info_print(ZSTR_VAL(key)); in php_info_print_stream_hash()
140 php_strtolower(ZSTR_VAL(url_name), ZSTR_LEN(url_name)); in php_info_print_module()
141 … php_info_printf("<h2><a name=\"module_%s\">%s</a></h2>\n", ZSTR_VAL(url_name), zend_module->name); in php_info_print_module()
192 php_info_print_html_esc(ZSTR_VAL(string_key), ZSTR_LEN(string_key)); in php_print_gpcse_array()
194 php_info_print(ZSTR_VAL(string_key)); in php_print_gpcse_array()
210 php_info_print_html_esc(ZSTR_VAL(str), ZSTR_LEN(str)); in php_print_gpcse_array()
224 php_info_print_html_esc(ZSTR_VAL(str), ZSTR_LEN(str)); in php_print_gpcse_array()
227 php_info_print(ZSTR_VAL(str)); in php_print_gpcse_array()
[all …]
H A Diptc.c225 poi = (unsigned char*)ZSTR_VAL(spoolbuf); in PHP_FUNCTION()
308 spoolbuf = zend_string_truncate(spoolbuf, poi - (unsigned char*)ZSTR_VAL(spoolbuf), 0); in PHP_FUNCTION()
H A Dmail.c197 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 Dmath.c1163 } else if (!isdigit((int)ZSTR_VAL(tmpbuf)[0])) { in _php_math_number_format_ex()
1174 dp = strpbrk(ZSTR_VAL(tmpbuf), ".,"); in _php_math_number_format_ex()
1181 integral = (dp - ZSTR_VAL(tmpbuf)); in _php_math_number_format_ex()
1208 s = ZSTR_VAL(tmpbuf) + ZSTR_LEN(tmpbuf) - 1; in _php_math_number_format_ex()
1209 t = ZSTR_VAL(res) + reslen; in _php_math_number_format_ex()
1241 while (s >= ZSTR_VAL(tmpbuf)) { in _php_math_number_format_ex()
1243 if (thousand_sep && (++count%3)==0 && s >= ZSTR_VAL(tmpbuf)) { in _php_math_number_format_ex()
H A Dmd5.c59 PHP_MD5Update(&context, ZSTR_VAL(arg), ZSTR_LEN(arg)); in PHP_NAMED_FUNCTION()

Completed in 90 milliseconds

1234567891011