Home
last modified time | relevance | path

Searched refs:Z_STRLEN_P (Results 1 – 25 of 106) sorted by relevance

12345

/php-src/ext/filter/
H A Dsanitizing_filters.c31 size_t len = Z_STRLEN_P(value); in php_filter_encode_html()
35 if (Z_STRLEN_P(value) == 0) { in php_filter_encode_html()
77 str = zend_string_safe_alloc(Z_STRLEN_P(value), 3, 0, 0); in php_filter_encode_url()
80 e = s + Z_STRLEN_P(value); in php_filter_encode_url()
111 buf = zend_string_alloc(Z_STRLEN_P(value), 0); in php_filter_strip()
113 for (i = 0; i < Z_STRLEN_P(value); i++) { in php_filter_strip()
153 buf = zend_string_alloc(Z_STRLEN_P(value), 0); in filter_map_apply()
155 for (i = 0; i < Z_STRLEN_P(value); i++) { in filter_map_apply()
176 ZVAL_STRINGL(value, Z_STRVAL_P(value), Z_STRLEN_P(value)); in php_filter_string()
199 Z_STRLEN_P(value) = new_len; in php_filter_string()
[all …]
H A Dlogical_filters.c68 var_name##_len = Z_STRLEN_P(option_val); \
213 len = Z_STRLEN_P(value); in php_filter_int()
276 size_t len = Z_STRLEN_P(value); in php_filter_boolean()
364 len = Z_STRLEN_P(value); in php_filter_float()
594 size_t old_len = Z_STRLEN_P(value); in php_filter_validate_url()
598 if (Z_TYPE_P(value) != IS_STRING || old_len != Z_STRLEN_P(value)) { in php_filter_validate_url()
603 url = php_url_parse_ex(Z_STRVAL_P(value), Z_STRLEN_P(value)); in php_filter_validate_url()
701 if (Z_STRLEN_P(value) > 320) { in php_filter_validate_email()
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()
[all …]
/php-src/Zend/
H A Dzend_ini_parser.y133 op1_len = (int)Z_STRLEN_P(op1); in zend_ini_add_string()
138 length = op1_len + (int)Z_STRLEN_P(op2); in zend_ini_add_string()
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()
320 if (convert_to_number(&number_rv, Z_STRVAL_P(zv), Z_STRLEN_P(zv)) == SUCCESS) { in normalize_value()
H A Dzend_operators.c1618 if (Z_STRLEN_P(op1) == 1) { in bitwise_not_function()
1662 if (EXPECTED(Z_STRLEN_P(op1) >= Z_STRLEN_P(op2))) { in bitwise_or_function()
1663 if (EXPECTED(Z_STRLEN_P(op1) == Z_STRLEN_P(op2)) && Z_STRLEN_P(op1) == 1) { in bitwise_or_function()
1744 if (EXPECTED(Z_STRLEN_P(op1) >= Z_STRLEN_P(op2))) { in bitwise_and_function()
1745 if (EXPECTED(Z_STRLEN_P(op1) == Z_STRLEN_P(op2)) && Z_STRLEN_P(op1) == 1) { in bitwise_and_function()
1826 if (EXPECTED(Z_STRLEN_P(op1) >= Z_STRLEN_P(op2))) { in bitwise_xor_function()
1827 if (EXPECTED(Z_STRLEN_P(op1) == Z_STRLEN_P(op2)) && Z_STRLEN_P(op1) == 1) { 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()
2163 … return zend_binary_strcasecmp(Z_STRVAL_P(op1), Z_STRLEN_P(op1), Z_STRVAL_P(op2), Z_STRLEN_P(op2)); in string_case_compare_function()
2527 size_t pos=Z_STRLEN_P(str)-1; in increment_string()
[all …]
H A Dzend_ini_scanner.l291 end = s + Z_STRLEN_P(lval); in zend_ini_escape_string()
311 Z_STRLEN_P(lval)--; in zend_ini_escape_string()
/php-src/ext/intl/collator/
H A Dcollator_convert.c50 old_val_len = Z_STRLEN_P( hashData ); in collator_convert_hash_item_from_utf8_to_utf16()
90 old_val_len = Z_STRLEN_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/soap/
H A Dphp_http.c152 if (Z_TYPE_P(tmp) == IS_STRING && Z_STRLEN_P(tmp)) { in http_context_headers()
157 if (Z_TYPE_P(value) == IS_STRING && Z_STRLEN_P(value)) { in http_context_headers()
612 if (Z_STRLEN_P(tmp) > 0) { in make_http_soap_request()
614 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
620 if (Z_STRLEN_P(tmp) > 0) { in make_http_soap_request()
622 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
639 Z_STRLEN_P(tmp) > 0 in make_http_soap_request()
656 Z_STRLEN_P(tmp) > 0 in make_http_soap_request()
726 Z_STRLEN_P(tmp) == sizeof("md5-sess")-1 && in make_http_soap_request()
1351 if (Z_STRLEN_P(return_value) == 0) { in make_http_soap_request()
[all …]
/php-src/ext/pdo_odbc/
H A Dodbc_stmt.c95 if (is_unicode && Z_STRLEN_P(result) != 0) { in pdo_odbc_ucs22utf8()
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()
192 Z_STRLEN_P(parameter), in odbc_stmt_execute()
196 Z_STRLEN_P(parameter)); in odbc_stmt_execute()
460 P->len = Z_STRLEN_P(parameter); in odbc_stmt_param_hook()
463 P->len = SQL_LEN_DATA_AT_EXEC(Z_STRLEN_P(parameter)); in odbc_stmt_param_hook()
474 Z_STRLEN_P(parameter), in odbc_stmt_param_hook()
478 P->len = Z_STRLEN_P(parameter); in odbc_stmt_param_hook()
487 P->len = SQL_LEN_DATA_AT_EXEC(Z_STRLEN_P(parameter)); in odbc_stmt_param_hook()
[all …]
/php-src/ext/readline/
H A Dreadline.c191 rl_line_buffer = malloc(Z_STRLEN_P(value) + 1); in PHP_FUNCTION()
192 } else if (strlen(oldstr) < Z_STRLEN_P(value)) { in PHP_FUNCTION()
193 rl_extend_line_buffer(Z_STRLEN_P(value) + 1); in PHP_FUNCTION()
196 memcpy(rl_line_buffer, Z_STRVAL_P(value), Z_STRLEN_P(value) + 1); in PHP_FUNCTION()
207 rl_end = Z_STRLEN_P(value); in PHP_FUNCTION()
/php-src/ext/standard/
H A Dhttp_fopen_wrapper.c197 Z_STRLEN_P(tmpzval) == 0) { in php_stream_url_wrap_http_ex()
225 Z_STRLEN_P(tmpzval) > 0) { in php_stream_url_wrap_http_ex()
298 } else if (Z_TYPE_P(tmpzval) == IS_STRING && Z_STRLEN_P(tmpzval)) { in php_stream_url_wrap_http_ex()
361 if (Z_TYPE_P(tmpzval) == IS_STRING && Z_STRLEN_P(tmpzval) > 0) { in php_stream_url_wrap_http_ex()
437 } else if (Z_TYPE_P(tmpzval) == IS_STRING && Z_STRLEN_P(tmpzval)) { in php_stream_url_wrap_http_ex()
610 Z_TYPE_P(tmpzval) == IS_STRING && Z_STRLEN_P(tmpzval) > 0 in php_stream_url_wrap_http_ex()
613 smart_str_append_unsigned(&req_buf, Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
626 Z_TYPE_P(tmpzval) == IS_STRING && Z_STRLEN_P(tmpzval) > 0) { in php_stream_url_wrap_http_ex()
629 smart_str_append_unsigned(&req_buf, Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
637 smart_str_appendl(&req_buf, Z_STRVAL_P(tmpzval), Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
H A Duser_filters.c404 if (bucket->buflen != Z_STRLEN_P(pzdata)) { in php_stream_bucket_attach()
405 bucket->buf = perealloc(bucket->buf, Z_STRLEN_P(pzdata), bucket->is_persistent); in php_stream_bucket_attach()
406 bucket->buflen = Z_STRLEN_P(pzdata); in php_stream_bucket_attach()
H A Dtype.c161 size_t strlen = Z_STRLEN_P(num); 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 Dhttp.c65 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/main/
H A Dphp_ini.c204 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()
238 if (arg3 && Z_STRLEN_P(arg3) > 0) { 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()
258 key_len = Z_STRLEN_P(arg1) - sizeof("PATH") + 1; 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()
269 key_len = Z_STRLEN_P(arg1) - sizeof("HOST") + 1; in php_ini_parser_cb()
/php-src/ext/libxml/
H A Dmime_sniff.c314 …!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 …charset_from_string(Z_STRVAL_P(header) + sizeof(buf) - 1, Z_STRVAL_P(header) + Z_STRLEN_P(header)); in php_libxml_sniff_charset_from_stream()
/php-src/sapi/phpdbg/
H A Dphpdbg_info.c255 …string (%zd) \"%.*s%s\"", Z_STRLEN_P(data), Z_STRLEN_P(data) < 255 ? (int) Z_STRLEN_P(data) : 255,… in phpdbg_print_symbols()
/php-src/ext/ctype/
H A Dctype.c92 char *p = Z_STRVAL_P(c), *e = Z_STRVAL_P(c) + Z_STRLEN_P(c); \
/php-src/ext/com_dotnet/
H A Dcom_wrapper.c238 …trace("-- Invoke: %ld %20s [%lu] flags=%08x args=%u\n", id, Z_STRVAL_P(name), Z_STRLEN_P(name), wF… in disp_invokeex()
261 …d_property(Z_OBJCE(disp->object), Z_OBJ(disp->object), Z_STRVAL_P(name), Z_STRLEN_P(name), 1, &rv); 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/pdo_firebird/
H A Dfirebird_statement.c757 if (Z_STRLEN_P(parameter) == 0) { in pdo_firebird_stmt_param_hook()
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()
832 force_null = (Z_STRLEN_P(parameter) == 0); in pdo_firebird_stmt_param_hook()
838 var->sqllen = Z_STRLEN_P(parameter); in pdo_firebird_stmt_param_hook()
/php-src/sapi/fuzzer/
H A Dfuzzer-execute-common.h90 if (Z_TYPE_P(arg) == IS_STRING && Z_STRLEN_P(arg) > MAX_SIZE) { in fuzzer_execute_internal()
/php-src/ext/pdo_sqlite/
H A Dsqlite_statement.c162 Z_STRLEN_P(parameter), in pdo_sqlite_stmt_param_hook()
185 Z_STRLEN_P(parameter), in pdo_sqlite_stmt_param_hook()
/php-src/Zend/Optimizer/
H A Dcompact_literals.c138 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()
/php-src/ext/zip/
H A Dphp_zip.c419 if (Z_STRLEN_P(option) == 0) { in php_zip_parse_options()
424 if (Z_STRLEN_P(option) >= MAXPATHLEN) { in php_zip_parse_options()
428 opts->remove_path_len = Z_STRLEN_P(option); in php_zip_parse_options()
439 if (Z_STRLEN_P(option) == 0) { in php_zip_parse_options()
444 if (Z_STRLEN_P(option) >= MAXPATHLEN) { in php_zip_parse_options()
448 opts->add_path_len = Z_STRLEN_P(option); in php_zip_parse_options()
1784 basename = php_basename(Z_STRVAL_P(zval_file), Z_STRLEN_P(zval_file), NULL, 0);
1790 file_stripped_len = Z_STRLEN_P(zval_file) - opts.remove_path_len - 1;
1793 file_stripped_len = Z_STRLEN_P(zval_file) - opts.remove_path_len;
1797 file_stripped_len = Z_STRLEN_P(zval_file);
[all …]
/php-src/ext/random/
H A Dengine_pcgoneseq128xslrr64.c96 if (!t || Z_TYPE_P(t) != IS_STRING || Z_STRLEN_P(t) != (2 * sizeof(uint64_t))) { in unserialize()
/php-src/ext/intl/locale/
H A Dlocale_methods.c820 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()

Completed in 75 milliseconds

12345