/php-src/Zend/ |
H A D | zend_ini_parser.y | 56 int val = atoi(Z_STRVAL_P(op)); in get_int_val() 141 memcpy(Z_STRVAL_P(result) + op1_len, Z_STRVAL_P(op2), Z_STRLEN_P(op2) + 1); in zend_ini_add_string() 151 if (!memchr(Z_STRVAL_P(name), ':', Z_STRLEN_P(name)) in zend_ini_get_constant() 161 ZVAL_NEW_STR(result, zend_string_init(Z_STRVAL_P(c), Z_STRLEN_P(c), ZEND_SYSTEM_INI)); in zend_ini_get_constant() 180 ZVAL_NEW_STR(result, zend_string_init(Z_STRVAL_P(curval), Z_STRLEN_P(curval), ZEND_SYSTEM_INI)); in zend_ini_get_var() 182 } else if ((envvar = zend_getenv(Z_STRVAL_P(name), Z_STRLEN_P(name))) != NULL) { in zend_ini_get_var() 185 } else if ((envvar = getenv(Z_STRVAL_P(name))) != NULL) { in zend_ini_get_var() 189 …ZVAL_NEW_STR(result, zend_string_init(Z_STRVAL_P(fallback), strlen(Z_STRVAL_P(fallback)), ZEND_SYS… in zend_ini_get_var() 320 if (convert_to_number(&number_rv, Z_STRVAL_P(zv), Z_STRLEN_P(zv)) == SUCCESS) { in normalize_value()
|
H A D | zend_operators.c | 1624 Z_STRVAL_P(result)[i] = ~Z_STRVAL_P(op1)[i]; in bitwise_not_function() 1626 Z_STRVAL_P(result)[i] = 0; in bitwise_not_function() 1664 zend_uchar or = (zend_uchar) (*Z_STRVAL_P(op1) | *Z_STRVAL_P(op2)); in bitwise_or_function() 1680 ZSTR_VAL(str)[i] = Z_STRVAL_P(longer)[i] | Z_STRVAL_P(shorter)[i]; in bitwise_or_function() 1746 zend_uchar and = (zend_uchar) (*Z_STRVAL_P(op1) & *Z_STRVAL_P(op2)); in bitwise_and_function() 1762 ZSTR_VAL(str)[i] = Z_STRVAL_P(shorter)[i] & Z_STRVAL_P(longer)[i]; in bitwise_and_function() 1828 zend_uchar xor = (zend_uchar) (*Z_STRVAL_P(op1) ^ *Z_STRVAL_P(op2)); in bitwise_xor_function() 1844 ZSTR_VAL(str)[i] = Z_STRVAL_P(shorter)[i] ^ Z_STRVAL_P(longer)[i]; in bitwise_xor_function() 2141 return zend_binary_strcmp(Z_STRVAL_P(op1), Z_STRLEN_P(op1), Z_STRVAL_P(op2), Z_STRLEN_P(op2)); in string_compare_function() 2567 s = Z_STRVAL_P(str); in increment_string() [all …]
|
H A D | zend_language_scanner.l | 730 memset(Z_STRVAL_P(str) + old_len, 0, ZEND_MMAP_AHEAD + 1); in zend_prepare_string_for_scanning() 735 buf = Z_STRVAL_P(str); in zend_prepare_string_for_scanning() 935 s = Z_STRVAL_P(zendlval); in zend_scan_escape_string() 1122 Z_STRLEN_P(zendlval) = t - Z_STRVAL_P(zendlval); in zend_scan_escape_string() 1129 s = Z_STRVAL_P(zendlval); in zend_scan_escape_string() 1159 const char *str = Z_STRVAL_P(zendlval), *end = str + Z_STRLEN_P(zendlval); in strip_multiline_string_indentation() 1160 char *copy = Z_STRVAL_P(zendlval); in strip_multiline_string_indentation() 1221 Z_STRLEN_P(zendlval) = copy - Z_STRVAL_P(zendlval); in strip_multiline_string_indentation() 2517 s = Z_STRVAL_P(zendlval); 2551 Z_STRLEN_P(zendlval) = t - Z_STRVAL_P(zendlval); [all …]
|
/php-src/ext/filter/ |
H A D | sanitizing_filters.c | 32 unsigned char *s = (unsigned char *)Z_STRVAL_P(value); in php_filter_encode_html() 79 s = (unsigned char *) Z_STRVAL_P(value); in php_filter_encode_url() 110 str = (unsigned char *)Z_STRVAL_P(value); in php_filter_strip() 152 str = (unsigned char *)Z_STRVAL_P(value); in filter_map_apply() 176 ZVAL_STRINGL(value, Z_STRVAL_P(value), Z_STRLEN_P(value)); in php_filter_string() 198 new_len = php_strip_tags_ex(Z_STRVAL_P(value), Z_STRLEN_P(value), NULL, 0, 1); in php_filter_string() 256 (unsigned char *) Z_STRVAL_P(value), Z_STRLEN_P(value), /* all */ 1, quotes, in php_filter_full_special_chars()
|
H A D | logical_filters.c | 67 var_name = Z_STRVAL_P(option_val); \ 228 p = Z_STRVAL_P(value); in php_filter_int() 275 char *str = Z_STRVAL_P(value); in php_filter_boolean() 365 str = Z_STRVAL_P(value); in php_filter_float() 561 if (!_php_filter_validate_domain(Z_STRVAL_P(value), Z_STRLEN_P(value), flags)) { in php_filter_validate_domain() 603 url = php_url_parse_ex(Z_STRVAL_P(value), Z_STRLEN_P(value)); in php_filter_validate_url() 882 if (memchr(Z_STRVAL_P(value), ':', Z_STRLEN_P(value))) { in php_filter_validate_ip() 884 } else if (memchr(Z_STRVAL_P(value), '.', Z_STRLEN_P(value))) { in php_filter_validate_ip() 900 if (!_php_filter_validate_ipv4(Z_STRVAL_P(value), Z_STRLEN_P(value), ip)) { in php_filter_validate_ip() 944 res = _php_filter_validate_ipv6(Z_STRVAL_P(value), Z_STRLEN_P(value), ip); in php_filter_validate_ip() [all …]
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_frame.c | 186 phpdbg_out("%s%s%s(", Z_STRVAL_P(class), Z_STRVAL_P(type), Z_STRVAL_P(funcname)); in phpdbg_dump_prototype() 188 phpdbg_out("%s(", Z_STRVAL_P(funcname)); in phpdbg_dump_prototype() 201 if ((func = phpdbg_get_function(Z_STRVAL_P(funcname), class ? Z_STRVAL_P(class) : NULL))) { in phpdbg_dump_prototype() 297 phpdbg_writeln(" => %s (internal function)", Z_STRVAL_P(function_name)); in phpdbg_dump_backtrace()
|
/php-src/ext/intl/collator/ |
H A D | collator_convert.c | 49 old_val = Z_STRVAL_P( hashData ); in collator_convert_hash_item_from_utf8_to_utf16() 89 old_val = Z_STRVAL_P( hashData ); in collator_convert_hash_item_from_utf16_to_utf8() 166 (UChar*) Z_STRVAL_P(utf16_zval), UCHARS( Z_STRLEN_P(utf16_zval) ), &status ); in collator_convert_zstr_utf16_to_utf8() 234 Z_STRVAL_P( zstr ), Z_STRLEN_P( zstr ), in collator_convert_object_to_string() 320 …if ( ( is_numeric = collator_is_numeric( (UChar*) Z_STRVAL_P(str), UCHARS( Z_STRLEN_P(str) ), &lva… in collator_convert_string_to_number_if_possible()
|
/php-src/ext/readline/ |
H A D | readline.c | 196 memcpy(rl_line_buffer, Z_STRVAL_P(value), Z_STRLEN_P(value) + 1); in PHP_FUNCTION() 198 char *tmp = strdup(Z_STRVAL_P(value)); in PHP_FUNCTION() 232 rl_pending_input = Z_STRVAL_P(value)[0]; in PHP_FUNCTION() 251 rl_completion_append_character = (int)Z_STRVAL_P(value)[0]; in PHP_FUNCTION() 275 rl_readline_name = strdup(Z_STRVAL_P(value)); in PHP_FUNCTION() 439 if (strncmp (Z_STRVAL_P(entry), text, strlen(text)) == 0) { in _readline_command_generator() 440 return (strdup(Z_STRVAL_P(entry))); in _readline_command_generator()
|
/php-src/ext/ctype/ |
H A D | ctype.c | 92 char *p = Z_STRVAL_P(c), *e = Z_STRVAL_P(c) + Z_STRLEN_P(c); \
|
/php-src/ext/soap/ |
H A D | php_http.c | 181 host = Z_STRVAL_P(proxy_host); in http_connect() 614 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request() 622 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request() 642 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request() 659 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request() 727 stricmp(Z_STRVAL_P(tmp), "md5-sess") == 0) { in make_http_soap_request() 783 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request() 788 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request() 818 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request() 823 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request() [all …]
|
H A D | soap.c | 685 fault_code_ns = Z_STRVAL_P(t_ns); in PHP_METHOD() 686 fault_code = Z_STRVAL_P(t_code); in PHP_METHOD() 820 type_name = Z_STRVAL_P(tmp); in soap_create_typemap() 825 type_ns = Z_STRVAL_P(tmp); in soap_create_typemap() 1384 soap_action = Z_STRVAL_P(soap_action_z); in PHP_METHOD() 3600 hdr_ns = Z_STRVAL_P(tmp); in serialize_response_call() 3606 hdr_name = Z_STRVAL_P(tmp); in serialize_response_call() 3644 fault_ns = Z_STRVAL_P(tmp); in serialize_response_call() 3828 hdr_ns = Z_STRVAL_P(tmp); in serialize_response_call() 3833 hdr_name = Z_STRVAL_P(tmp); in serialize_response_call() [all …]
|
/php-src/ext/libxml/ |
H A D | mime_sniff.c | 314 …!zend_binary_strncasecmp(Z_STRVAL_P(header), Z_STRLEN_P(header), buf, sizeof(buf)-1, sizeof(buf)-1… in php_libxml_sniff_charset_from_stream() 315 …return php_libxml_sniff_charset_from_string(Z_STRVAL_P(header) + sizeof(buf) - 1, Z_STRVAL_P(heade… in php_libxml_sniff_charset_from_stream()
|
/php-src/sapi/fpm/fpm/ |
H A D | fpm_conf.c | 255 *config_val = strdup(Z_STRVAL_P(value)); in fpm_conf_set_string() 269 char *val = Z_STRVAL_P(value); in fpm_conf_set_integer() 287 char *val = Z_STRVAL_P(value); 304 char *val = Z_STRVAL_P(value); in fpm_conf_set_time() 579 kv->key = strdup(Z_STRVAL_P(key)); in fpm_conf_set_array() 596 kv->value = strdup(Z_STRVAL_P(value)); in fpm_conf_set_array() 1498 ini_include = strdup(Z_STRVAL_P(value)); in fpm_conf_ini_parser_entry() 1544 if (!(*Z_STRVAL_P(key) == '\0')) { in fpm_conf_ini_parser_array() 1548 if (!(*Z_STRVAL_P(value)) || (*Z_STRVAL_P(value) != '/')) { in fpm_conf_ini_parser_array() 1555 } else if (!*Z_STRVAL_P(key)) { in fpm_conf_ini_parser_array() [all …]
|
/php-src/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 99 …ret = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR) Z_STRVAL_P(result), Z_STRLEN_P(result)/sizeof(WCHA… in pdo_odbc_ucs22utf8() 105 …ret = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR) Z_STRVAL_P(result), Z_STRLEN_P(result)/sizeof(WCHA… in pdo_odbc_ucs22utf8() 191 Z_STRVAL_P(parameter), in odbc_stmt_execute() 195 rc1 = SQLPutData(S->stmt, Z_STRVAL_P(parameter), in odbc_stmt_execute() 461 memcpy(P->outbuf, Z_STRVAL_P(parameter), P->len); in odbc_stmt_param_hook() 473 Z_STRVAL_P(parameter), in odbc_stmt_param_hook() 479 memcpy(P->outbuf, Z_STRVAL_P(parameter), P->len); in odbc_stmt_param_hook() 774 rc = SQLSetCursorName(S->stmt, (SQLCHAR *) Z_STRVAL_P(val), Z_STRLEN_P(val)); in odbc_stmt_set_param()
|
/php-src/main/ |
H A D | php_ini.c | 204 extension_name = estrndup(Z_STRVAL_P(arg2), Z_STRLEN_P(arg2)); in php_ini_parser_cb() 207 extension_name = estrndup(Z_STRVAL_P(arg2), Z_STRLEN_P(arg2)); in php_ini_parser_cb() 255 …if (!zend_binary_strncasecmp(Z_STRVAL_P(arg1), Z_STRLEN_P(arg1), "PATH", sizeof("PATH") - 1, sizeo… in php_ini_parser_cb() 256 key = Z_STRVAL_P(arg1); in php_ini_parser_cb() 266 …} else if (!zend_binary_strncasecmp(Z_STRVAL_P(arg1), Z_STRLEN_P(arg1), "HOST", sizeof("HOST") - 1… in php_ini_parser_cb() 267 key = Z_STRVAL_P(arg1); in php_ini_parser_cb() 935 *result = Z_STRVAL_P(tmp);
|
/php-src/ext/standard/ |
H A D | url.c | 708 if ((p = strchr(Z_STRVAL_P(hdr), ':'))) { in PHP_FUNCTION() 716 …if ((prev_val = zend_hash_str_find(Z_ARRVAL_P(return_value), Z_STRVAL_P(hdr), (p - Z_STRVAL_P(hdr)… in PHP_FUNCTION() 717 …add_assoc_stringl_ex(return_value, Z_STRVAL_P(hdr), (p - Z_STRVAL_P(hdr)), s, (Z_STRLEN_P(hdr) - (… in PHP_FUNCTION() 720 add_next_index_stringl(prev_val, s, (Z_STRLEN_P(hdr) - (s - Z_STRVAL_P(hdr)))); in PHP_FUNCTION()
|
H A D | type.c | 160 char *strval = Z_STRVAL_P(num); in PHP_FUNCTION() 196 RETVAL_LONG(ZEND_STRTOL(Z_STRVAL_P(num), NULL, base)); in PHP_FUNCTION() 353 if (is_numeric_string(Z_STRVAL_P(arg), Z_STRLEN_P(arg), NULL, NULL, 0)) { in _zend_is_numeric()
|
H A D | http.c | 65 encoded_data = php_raw_url_encode(Z_STRVAL_P(scalar), Z_STRLEN_P(scalar)); in php_url_encode_scalar() 67 encoded_data = php_url_encode(Z_STRVAL_P(scalar), Z_STRLEN_P(scalar)); in php_url_encode_scalar()
|
/php-src/ext/intl/common/ |
H A D | common_date.cpp | 179 type = is_numeric_string(Z_STRVAL_P(z), Z_STRLEN_P(z), &lv, &rv, 0); in intl_zval_to_millis() 187 Z_STRVAL_P(z)); in intl_zval_to_millis()
|
/php-src/ext/com_dotnet/ |
H A D | com_wrapper.c | 238 …trace("-- Invoke: %ld %20s [%lu] flags=%08x args=%u\n", id, Z_STRVAL_P(name), Z_STRLEN_P(name), wF… in disp_invokeex() 261 …retval = zend_read_property(Z_OBJCE(disp->object), Z_OBJ(disp->object), Z_STRVAL_P(name), Z_STRLEN… in disp_invokeex() 264 …zend_update_property(Z_OBJCE(disp->object), Z_OBJ(disp->object), Z_STRVAL_P(name), Z_STRLEN_P(name… in disp_invokeex() 365 …OLECHAR *olestr = php_com_string_to_olestring(Z_STRVAL_P(name), Z_STRLEN_P(name), COMG(code_page)); in disp_getmembername()
|
/php-src/ext/intl/locale/ |
H A D | locale_methods.c | 820 smart_str_appendl(loc_name, Z_STRVAL_P(ele_value) , Z_STRLEN_P(ele_value)); in append_key_value() 858 smart_str_appendl(loc_name, Z_STRVAL_P(ele_value) , Z_STRLEN_P(ele_value)); in append_multiple_key_values() 872 smart_str_appendl(loc_name, Z_STRVAL_P(data) , Z_STRLEN_P(data)); in append_multiple_key_values() 906 smart_str_appendl(loc_name, Z_STRVAL_P(ele_value) , Z_STRLEN_P(ele_value)); in append_multiple_key_values() 1435 cur_arr[cur_arr_len*2] = estrndup(Z_STRVAL_P(ele_value), Z_STRLEN_P(ele_value)); in lookup_loc_range() 1436 result = strToMatch(Z_STRVAL_P(ele_value), cur_arr[cur_arr_len*2]); in lookup_loc_range() 1441 cur_arr[cur_arr_len*2+1] = Z_STRVAL_P(ele_value); in lookup_loc_range()
|
/php-src/ext/pdo_firebird/ |
H A D | firebird_statement.c | 762 switch (is_numeric_string(Z_STRVAL_P(parameter), Z_STRLEN_P(parameter), &lval, &dval, 0)) { in pdo_firebird_stmt_param_hook() 770 if (!zend_binary_strncasecmp(Z_STRVAL_P(parameter), Z_STRLEN_P(parameter), "true", 4, 4)) { in pdo_firebird_stmt_param_hook() 772 …} else if (!zend_binary_strncasecmp(Z_STRVAL_P(parameter), Z_STRLEN_P(parameter), "false", 5, 5)) { in pdo_firebird_stmt_param_hook() 837 var->sqldata = Z_STRVAL_P(parameter); in pdo_firebird_stmt_param_hook() 894 if (isc_dsql_set_cursor_name(S->H->isc_status, &S->stmt, Z_STRVAL_P(val),0)) { in pdo_firebird_stmt_set_attribute() 898 strlcpy(S->name, Z_STRVAL_P(val), sizeof(S->name)); in pdo_firebird_stmt_set_attribute()
|
/php-src/ext/intl/timezone/ |
H A D | timezone_class.cpp | 186 if (intl_stringFromChar(id, Z_STRVAL_P(zv_timezone), Z_STRLEN_P(zv_timezone), in timezone_process_timezone_argument() 209 func, Z_STRVAL_P(zv_timezone)); in timezone_process_timezone_argument()
|
/php-src/ext/pdo_sqlite/ |
H A D | sqlite_statement.c | 161 Z_STRVAL_P(parameter), in pdo_sqlite_stmt_param_hook() 184 Z_STRVAL_P(parameter), in pdo_sqlite_stmt_param_hook()
|
/php-src/Zend/Optimizer/ |
H A D | compact_literals.c | 138 Z_STRVAL_P(literal), Z_STRLEN_P(literal), in create_str_cache_key() 139 Z_STRVAL_P(literal + 1), Z_STRLEN_P(literal + 1)); in create_str_cache_key() 143 Z_STRVAL_P(literal), Z_STRLEN_P(literal), in create_str_cache_key() 144 Z_STRVAL_P(literal + 1), Z_STRLEN_P(literal + 1), in create_str_cache_key() 145 Z_STRVAL_P(literal + 2), Z_STRLEN_P(literal + 2)); in create_str_cache_key()
|