/php-src/ext/intl/grapheme/ |
H A D | grapheme_string.c | 869 pstr = ZSTR_VAL(str); in PHP_FUNCTION()
|
/php-src/ext/intl/converter/ |
H A D | converter.c | 666 ZSTR_LEN(ret) = ucnv_fromUChars(dest_cnv, ZSTR_VAL(ret), ret_len+1, temp, temp_len, &error); in php_converter_do_convert()
|
/php-src/ext/standard/ |
H A D | streamsfuncs.c | 132 spprintf(&hashkey, 0, "stream_socket_client__%s", ZSTR_VAL(host)); in PHP_FUNCTION() 158 stream = php_stream_xport_create(ZSTR_VAL(host), ZSTR_LEN(host), REPORT_ERRORS, in PHP_FUNCTION() 168 …E_WARNING, "Unable to connect to %s (%s)", ZSTR_VAL(quoted_host), errstr == NULL ? "Unknown error"… in PHP_FUNCTION() 234 …ARNING, "Unable to connect to %s (%s)", host, errstr == NULL ? "Unknown error" : ZSTR_VAL(errstr)); in PHP_FUNCTION() 313 …php_error_docref(NULL, E_WARNING, "Accept failed: %s", errstr ? ZSTR_VAL(errstr) : "Unknown error"… in PHP_FUNCTION() 345 if ((ZSTR_LEN(name) == 0) || (ZSTR_VAL(name)[0] == 0)) { in PHP_FUNCTION() 418 recvd = php_stream_xport_recvfrom(stream, ZSTR_VAL(read_buf), to_read, (int)flags, NULL, NULL, in PHP_FUNCTION() 426 ZSTR_VAL(read_buf)[recvd] = '\0'; in PHP_FUNCTION() 919 php_stream_context_set_option(context, ZSTR_VAL(wkey), ZSTR_VAL(okey), oval); in parse_context_options() 1069 php_stream_context_set_option(context, ZSTR_VAL(wrappername), optionname, zvalue); in PHP_FUNCTION()
|
H A D | string.c | 1317 ZSTR_VAL(tmp)[0] = ZSTR_VAL(incremented)[0]; in PHP_FUNCTION() 2456 memcpy(ZSTR_VAL(result), ZSTR_VAL(str), f); 2602 memcpy(ZSTR_VAL(result), ZSTR_VAL(orig_str), f); 2609 memcpy(ZSTR_VAL(result), ZSTR_VAL(orig_str), f); 2617 memcpy(ZSTR_VAL(result), ZSTR_VAL(orig_str), f); 2874 memcpy(ZSTR_VAL(new_str), ZSTR_VAL(str), input - ZSTR_VAL(str)); 2903 memcpy(ZSTR_VAL(new_str), ZSTR_VAL(str), input - ZSTR_VAL(str)); 2928 memcpy(ZSTR_VAL(new_str), ZSTR_VAL(str), i); 2930 ZSTR_VAL(new_str)[i] = ZSTR_VAL(str)[i] + xlat[(size_t)(unsigned char) ZSTR_VAL(str)[i]]; 3974 memcpy(ZSTR_VAL(new_str), ZSTR_VAL(str), offset); [all …]
|
H A D | pack.c | 478 memcpy(&ZSTR_VAL(output)[outputpos], ZSTR_VAL(str), in PHP_FUNCTION() 492 char *v = ZSTR_VAL(str); in PHP_FUNCTION() 515 ZSTR_VAL(output)[++outputpos] = 0; in PHP_FUNCTION() 520 ZSTR_VAL(output)[outputpos] |= (n << nibbleshift); in PHP_FUNCTION() 607 memcpy(&ZSTR_VAL(output)[outputpos], &v, sizeof(v)); in PHP_FUNCTION() 663 memset(&ZSTR_VAL(output)[outputpos], '\0', arg); in PHP_FUNCTION() 686 ZSTR_VAL(output)[outputpos] = '\0'; in PHP_FUNCTION() 721 format = ZSTR_VAL(formatarg); in PHP_FUNCTION() 723 input = ZSTR_VAL(inputarg); in PHP_FUNCTION() 1000 ZSTR_VAL(buf)[opos] = cc; in PHP_FUNCTION() [all …]
|
H A D | proc_open.c | 202 p = zend_mempcpy(p, ZSTR_VAL(key), ZSTR_LEN(key)); in _php_array_to_envp() 206 p = zend_mempcpy(p, ZSTR_VAL(str), ZSTR_LEN(str)); in _php_array_to_envp() 518 if (strlen(ZSTR_VAL(str)) != ZSTR_LEN(str)) { in get_valid_arg_string() 540 if (strchr(special_chars, ZSTR_VAL(arg)[i]) != NULL) { in is_special_character_present() 563 char c = ZSTR_VAL(arg)[i]; in append_win_escaped_arg() 649 is_cmd_execution = is_executed_by_cmd(ZSTR_VAL(arg_str)); in create_win_command_from_args() 754 (*argv)[i++] = estrdup(ZSTR_VAL(arg_str)); in get_command_from_array() 860 if (ZSTR_LEN(zmode) >= 2 && ZSTR_VAL(zmode)[1] == 'b') in set_proc_descriptor_to_pipe() 899 php_stream *stream = php_stream_open_wrapper(ZSTR_VAL(file_path), ZSTR_VAL(file_mode), in set_proc_descriptor_to_file() 917 if (strchr(ZSTR_VAL(file_mode), 'a')) { in set_proc_descriptor_to_file() [all …]
|
H A D | mail.c | 126 zend_value_error("Header name \"%s\" contains invalid characters", ZSTR_VAL(key)); in php_mail_build_headers_elem() 135 …alue_error("Header \"%s\" contains LF character that is not allowed in the header", ZSTR_VAL(key)); in php_mail_build_headers_elem() 138 …alue_error("Header \"%s\" contains CR character that is not allowed in the header", ZSTR_VAL(key)); in php_mail_build_headers_elem() 144 …ue_error("Header \"%s\" contains NULL character that is not allowed in the header", ZSTR_VAL(key)); in php_mail_build_headers_elem() 148 …zend_value_error("Header \"%s\" has invalid format, or contains invalid characters", ZSTR_VAL(key)… in php_mail_build_headers_elem() 160 …zend_type_error("Header \"%s\" must be of type array|string, %s given", ZSTR_VAL(key), zend_zval_v… in php_mail_build_headers_elem() 172 …or("Header \"%s\" must only contain numeric keys, \"%s\" found", ZSTR_VAL(key), ZSTR_VAL(tmp_key)); in php_mail_build_headers_elems() 261 if (strlen(ZSTR_VAL(headers_str)) != ZSTR_LEN(headers_str)) { in PHP_FUNCTION() 320 …r, message, headers_str && ZSTR_LEN(headers_str) ? ZSTR_VAL(headers_str) : NULL, extra_cmd ? ZSTR_… in PHP_FUNCTION() 479 …spprintf(&ahdr, 0, "X-PHP-Originating-Script: " ZEND_LONG_FMT ":%s%s%s", php_getuid(), ZSTR_VAL(f)… in php_mail() [all …]
|
H A D | browscap.c | 94 if (is_placeholder(ZSTR_VAL(pattern)[i])) { in browscap_compute_prefix_len() 107 if (!is_placeholder(ZSTR_VAL(pattern)[i])) { in browscap_compute_contains() 120 if (is_placeholder(ZSTR_VAL(pattern)[i])) { in browscap_compute_contains() 132 switch (ZSTR_VAL(pattern)[i]) { in browscap_compute_regex_len() 155 t = ZSTR_VAL(res); in browscap_convert_pattern() 161 char c = ZSTR_VAL(pattern)[i]; in browscap_convert_pattern() 239 zend_str_tolower_copy(ZSTR_VAL(lcname), ZSTR_VAL(str), ZSTR_LEN(str)); in browscap_intern_str_ci() 635 zend_str_tolower_copy(ZSTR_VAL(pattern_lc), ZSTR_VAL(entry->pattern), ZSTR_LEN(entry->pattern)); in browser_reg_compare() 662 ZSTR_VAL(agent_name) + entry->prefix_len, in browser_reg_compare() 673 switch (ZSTR_VAL(current_match)[i]) { in browser_reg_compare() [all …]
|
H A D | dir.c | 255 …if (BG(CurrentStatFile) && !IS_ABSOLUTE_PATH(ZSTR_VAL(BG(CurrentStatFile)), ZSTR_LEN(BG(CurrentSta… in PHP_FUNCTION() 259 …if (BG(CurrentLStatFile) && !IS_ABSOLUTE_PATH(ZSTR_VAL(BG(CurrentLStatFile)), ZSTR_LEN(BG(CurrentL… in PHP_FUNCTION()
|
H A D | exec.c | 359 ZSTR_VAL(cmd)[y++] = '^'; in php_escape_shell_cmd() 369 ZSTR_VAL(cmd)[y] = '\0'; in php_escape_shell_cmd() 410 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg() 412 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg() 433 ZSTR_VAL(cmd)[y++] = ' '; in php_escape_shell_arg() 437 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg() 438 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_arg() 439 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg() 455 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg() 457 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg() [all …]
|
H A D | file.c | 541 bytes_written = php_stream_write(stream, ZSTR_VAL(str), ZSTR_LEN(str)); in PHP_FUNCTION() 630 s = ZSTR_VAL(target_buf); in PHP_FUNCTION() 631 e = ZSTR_VAL(target_buf) + ZSTR_LEN(target_buf); in PHP_FUNCTION() 654 if (p != ZSTR_VAL(target_buf) && eol_marker == '\n' && *(p - 1) == '\r') { in PHP_FUNCTION() 696 ZSTR_VAL(p)[63] = '\0'; in PHP_FUNCTION() 701 …if ((fd = php_open_temporary_fd_ex(dir, ZSTR_VAL(p), &opened_path, PHP_TMP_FILE_OPEN_BASEDIR_CHECK… in PHP_FUNCTION() 910 if (php_stream_get_line(stream, ZSTR_VAL(str), len, &line_len) == NULL) { in PHP_FUNCTION() 1684 #define FPUTCSV_FLD_CHK(c) memchr(ZSTR_VAL(field_str), c, ZSTR_LEN(field_str)) 1775 char *ch = ZSTR_VAL(field_str); in php_fputcsv() 1809 ret = php_stream_write(stream, ZSTR_VAL(csvline.s), ZSTR_LEN(csvline.s)); in php_fputcsv()
|
H A D | filters.c | 1089 memcpy(*pretval, ZSTR_VAL(str), ZSTR_LEN(str) + 1); in php_conv_get_string_prop_ex()
|
H A D | formatted_print.c | 56 ZSTR_VAL(*buffer)[(*pos)++] = add; in php_sprintf_appendchar() 74 memcpy(ZSTR_VAL(*buffer) + (*pos), add, len); in php_sprintf_appendchars() 116 ZSTR_VAL(*buffer)[(*pos)++] = (neg) ? '-' : '+'; in php_sprintf_appendstring() 122 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring() 126 memcpy(&ZSTR_VAL(*buffer)[*pos], add, copy_len + 1); in php_sprintf_appendstring() 130 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring() 623 ZSTR_VAL(str), in php_formatted_print() 725 ZSTR_VAL(result)[outpos]=0; in php_formatted_print() 821 rlen = PHPWRITE(ZSTR_VAL(result), ZSTR_LEN(result)); in PHP_FUNCTION() 850 rlen = PHPWRITE(ZSTR_VAL(result), ZSTR_LEN(result)); in PHP_FUNCTION() [all …]
|
H A D | html.c | 832 for (p = old, q = ZSTR_VAL(ret); p < lim;) { in traverse_for_entities() 921 ZSTR_LEN(ret) = (size_t)(q - ZSTR_VAL(ret)); in traverse_for_entities() 983 if (!memchr(ZSTR_VAL(str), '&', ZSTR_LEN(str))) { in php_unescape_html_entities() 1207 ZSTR_VAL(replaced)[len++] = '&'; in php_escape_html_entities_ex() 1208 memcpy(&ZSTR_VAL(replaced)[len], rep, rep_len); in php_escape_html_entities_ex() 1210 ZSTR_VAL(replaced)[len++] = ';'; in php_escape_html_entities_ex() 1244 memcpy(ZSTR_VAL(replaced) + len, mbsequence, mbseqlen); in php_escape_html_entities_ex() 1247 ZSTR_VAL(replaced)[len++] = mbsequence[0]; in php_escape_html_entities_ex() 1296 ZSTR_VAL(replaced)[len++] = '&'; in php_escape_html_entities_ex() 1299 ZSTR_VAL(replaced)[len++] = ';'; in php_escape_html_entities_ex() [all …]
|
H A D | array.c | 339 …int result = strnatcmp_ex(ZSTR_VAL(str1), ZSTR_LEN(str1), ZSTR_VAL(str2), ZSTR_LEN(str2), fold_cas… in php_array_natural_general_compare() 1845 memcpy(Z_STRVAL_P(result), ZSTR_VAL(prefix), ZSTR_LEN(prefix)); 1878 if (!php_valid_var_name(ZSTR_VAL(var_name), ZSTR_LEN(var_name))) { 1924 if (!php_valid_var_name(ZSTR_VAL(var_name), ZSTR_LEN(var_name))) { 1960 if (!php_valid_var_name(ZSTR_VAL(var_name), ZSTR_LEN(var_name))) { 2010 if (!php_valid_var_name(ZSTR_VAL(var_name), ZSTR_LEN(var_name))) { 2212 if (!php_valid_var_name(ZSTR_VAL(var_name), ZSTR_LEN(var_name))) { 2404 if (!php_valid_var_name(ZSTR_VAL(var_name), ZSTR_LEN(var_name)) 2459 if (!php_valid_var_name(ZSTR_VAL(var_name), ZSTR_LEN(var_name)) 2518 if (!php_valid_var_name(ZSTR_VAL(var_name), ZSTR_LEN(var_name))) { [all …]
|
H A D | levenshtein.c | 53 c0 = p1[i2] + ((ZSTR_VAL(string1)[i1] == ZSTR_VAL(string2)[i2]) ? 0 : cost_rep); in reference_levdist()
|
/php-src/ext/zip/ |
H A D | php_zip.c | 777 (namelist_len == 2 && ZSTR_VAL(namelist[i])[0] == '.' && ZSTR_VAL(namelist[i])[1] == '.')) { in php_zip_pcre() 920 …ow_error(NULL, "Cannot write read-only property %s::$%s", ZSTR_VAL(object->ce->name), ZSTR_VAL(nam… in php_zip_write_property() 1192 if (ZIP_OPENBASEDIR_CHECKPATH(ZSTR_VAL(filename))) { in PHP_FUNCTION() 1196 if(!expand_filepath(ZSTR_VAL(filename), resolved_path)) { in PHP_FUNCTION() 1355 ZSTR_VAL(buffer)[n] = '\0'; in PHP_FUNCTION() 1474 if (ZIP_OPENBASEDIR_CHECKPATH(ZSTR_VAL(filename))) { 1786 file_stripped = ZSTR_VAL(basename); 1880 entry_name = ZSTR_VAL(filename); 2923 zf = zip_fopen(intern, ZSTR_VAL(filename), flags); 2931 n = zip_fread(zf, ZSTR_VAL(buffer), ZSTR_LEN(buffer)); [all …]
|
/php-src/ext/zlib/ |
H A D | zlib.c | 397 Z.next_out = (Bytef *) ZSTR_VAL(out); in php_zlib_encode() 407 ZSTR_VAL(out)[ZSTR_LEN(out)] = '\0'; in php_zlib_encode() 797 memcpy(*dict, ZSTR_VAL(str), ZSTR_LEN(str)); in zlib_create_dictionary_string() 828 if (ZSTR_VAL(*ptr)[i] == 0) { in zlib_create_dictionary_string() 845 memcpy(dictptr, ZSTR_VAL(*ptr), ZSTR_LEN(*ptr)); in zlib_create_dictionary_string() 981 ctx->Z.next_out = (Bytef *) ZSTR_VAL(out); in PHP_FUNCTION() 1044 ZSTR_VAL(out)[buffer_used] = 0; in PHP_FUNCTION() 1218 ctx->Z.next_out = (Bytef *) ZSTR_VAL(out); in PHP_FUNCTION() 1230 ctx->Z.next_out = (Bytef *) ZSTR_VAL(out) + buffer_used; in PHP_FUNCTION() 1239 ZSTR_VAL(out)[ZSTR_LEN(out)] = 0; in PHP_FUNCTION() [all …]
|
/php-src/ext/odbc/ |
H A D | php_odbc.c | 353 value = ZSTR_VAL(ini_entry->orig_value); in PHP_INI_DISP() 355 value = ZSTR_VAL(ini_entry->value); in PHP_INI_DISP() 376 value = ZSTR_VAL(ini_entry->orig_value); in PHP_INI_DISP() 378 value = ZSTR_VAL(ini_entry->value); in PHP_INI_DISP() 405 value = ZSTR_VAL(ini_entry->orig_value); in PHP_INI_DISP() 407 value = ZSTR_VAL(ini_entry->value); in PHP_INI_DISP() 429 value = ZSTR_VAL(ini_entry->orig_value); in PHP_INI_DISP() 431 value = ZSTR_VAL(ini_entry->value); in PHP_INI_DISP() 1065 ZSTR_VAL(tmpstr)[0] == '\'' && in PHP_FUNCTION() 1107 ZSTR_VAL(tmpstr), 0, in PHP_FUNCTION() [all …]
|
/php-src/ext/pcre/ |
H A D | php_pcre.c | 613 ZSTR_VAL(regex), ZSTR_LEN(regex)); in pcre_get_compiled_regex_cache_ex() 628 p = ZSTR_VAL(regex); in pcre_get_compiled_regex_cache_ex() 1154 char *subject = ZSTR_VAL(subject_str); in php_pcre_match_impl() 1690 walk = ZSTR_VAL(replace_str); in php_pcre_replace_impl() 1730 memcpy(&ZSTR_VAL(result)[result_len], ZSTR_VAL(replace_str), ZSTR_LEN(replace_str)+1); in php_pcre_replace_impl() 1736 walk = ZSTR_VAL(replace_str); in php_pcre_replace_impl() 1809 ZSTR_VAL(result)[result_len] = '\0'; in php_pcre_replace_impl() 1966 memcpy(ZSTR_VAL(result) + result_len, ZSTR_VAL(eval_result), ZSTR_LEN(eval_result)); in php_pcre_replace_func_impl() 2780 in_str = ZSTR_VAL(str); in PHP_FUNCTION() 2784 delim_char = ZSTR_VAL(delim)[0]; in PHP_FUNCTION() [all …]
|
/php-src/ext/pdo_pgsql/ |
H A D | pgsql_driver.c | 336 if (!(res = PQexec(H->server, ZSTR_VAL(sql)))) { in pgsql_handle_doer() 373 …escaped = PQescapeByteaConn(H->server, (unsigned char *)ZSTR_VAL(unquoted), ZSTR_LEN(unquoted), &t… in pgsql_handle_quoter() 385 …quotedlen = PQescapeStringConn(H->server, quoted + 1, ZSTR_VAL(unquoted), ZSTR_LEN(unquoted), NULL… in pgsql_handle_quoter() 407 q[0] = ZSTR_VAL(name); in pdo_pgsql_last_insert_id() 1358 …' connect_timeout=" ZEND_LONG_FMT, (char *) dbh->data_source, ZSTR_VAL(tmp_user), ZSTR_VAL(tmp_pas… in pdo_pgsql_handle_factory() 1360 …s user='%s' connect_timeout=" ZEND_LONG_FMT, (char *) dbh->data_source, ZSTR_VAL(tmp_user), connec… in pdo_pgsql_handle_factory() 1362 …ssword='%s' connect_timeout=" ZEND_LONG_FMT, (char *) dbh->data_source, ZSTR_VAL(tmp_pass), connec… in pdo_pgsql_handle_factory()
|
/php-src/ext/posix/ |
H A D | posix.c | 593 if (php_check_open_basedir_ex(ZSTR_VAL(path), 0)) { in PHP_FUNCTION() 597 result = mkfifo(ZSTR_VAL(path), mode); in PHP_FUNCTION() 626 if (php_check_open_basedir_ex(ZSTR_VAL(path), 0)) { in PHP_FUNCTION() 643 result = mknod(ZSTR_VAL(path), mode, php_dev); in PHP_FUNCTION()
|
/php-src/ext/session/ |
H A D | session.c | 349 ZSTR_VAL(outid), ZSTR_LEN(outid), in php_session_create_id() 433 if (!PS(id) || !ZSTR_VAL(PS(id))[0]) { in php_session_initialize() 590 tmp = _php_find_ps_module(ZSTR_VAL(new_value)); in PHP_INI_MH() 625 tmp = _php_find_ps_serializer(ZSTR_VAL(new_value)); in PHP_INI_MH() 662 if ((p = strchr(ZSTR_VAL(new_value), ';'))) { in PHP_INI_MH() 669 p = ZSTR_VAL(new_value); in PHP_INI_MH() 713 if (atol(ZSTR_VAL(new_value)) < 0) { in PHP_INI_MH() 791 int tmp = ZEND_ATOL(ZSTR_VAL(new_value)); in PHP_INI_MH() 1472 smart_str_appends(&var, ZSTR_VAL(PS(id))); in php_session_reset_id() 1937 if (!_php_find_ps_module(ZSTR_VAL(name))) { in PHP_FUNCTION() [all …]
|
/php-src/ext/libxml/ |
H A D | libxml.c | 520 enc = xmlParseCharEncoding(ZSTR_VAL(charset)); in php_libxml_input_buffer_create_filename() 670 _php_list_set_error_structure(NULL, ZSTR_VAL(LIBXML(error_buffer).s), line, column); in php_libxml_internal_error_handler_ex() 675 php_libxml_ctx_error_level(E_WARNING, ctx, ZSTR_VAL(LIBXML(error_buffer).s), line); in php_libxml_internal_error_handler_ex() 678 php_libxml_ctx_error_level(E_NOTICE, ctx, ZSTR_VAL(LIBXML(error_buffer).s), line); in php_libxml_internal_error_handler_ex() 681 php_error_docref(NULL, E_WARNING, "%s", ZSTR_VAL(LIBXML(error_buffer).s)); in php_libxml_internal_error_handler_ex() 747 ZSTR_VAL(LIBXML(entity_loader_callback).function_handler->common.function_name)); in _php_libxml_external_entity_loader() 759 ZSTR_VAL(LIBXML(entity_loader_callback).function_handler->common.function_name)); in _php_libxml_external_entity_loader()
|
/php-src/ext/mbstring/ |
H A D | mb_gpc.c | 256 val = estrndup(ZSTR_VAL(converted_val), ZSTR_LEN(converted_val)); in _php_mb_encoding_handler_ex() 257 …if (sapi_module.input_filter(info->data_type, ZSTR_VAL(converted_var), &val, ZSTR_LEN(converted_va… in _php_mb_encoding_handler_ex() 259 php_register_variable_safe(ZSTR_VAL(converted_var), val, new_val_len, array_ptr); in _php_mb_encoding_handler_ex() 304 detected = _php_mb_encoding_handler_ex(&info, arg, post_data_str ? ZSTR_VAL(post_data_str) : NULL); in SAPI_POST_HANDLER_FUNC()
|