Home
last modified time | relevance | path

Searched refs:new_len (Results 1 – 16 of 16) sorted by relevance

/php-src/Zend/
H A Dzend_smart_str.h57 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_extend_ex() local
59 ZSTR_LEN(dest->s) = new_len; in smart_str_extend_ex()
123 size_t new_len = smart_str_alloc(dest, 1, persistent); in smart_str_appendc_ex() local
124 ZSTR_VAL(dest->s)[new_len - 1] = ch; in smart_str_appendc_ex()
125 ZSTR_LEN(dest->s) = new_len; in smart_str_appendc_ex()
129 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_appendl_ex() local
131 ZSTR_LEN(dest->s) = new_len; in smart_str_appendl_ex()
H A Dzend_smart_string.h85 size_t new_len = smart_string_alloc(dest, len, persistent); in smart_string_appendl_ex() local
87 dest->len = new_len; in smart_string_appendl_ex()
/php-src/ext/filter/
H A Dsanitizing_filters.c170 size_t new_len; in php_filter_string() local
196 new_len = php_strip_tags_ex(Z_STRVAL_P(value), Z_STRLEN_P(value), NULL, 0, 1); in php_filter_string()
197 Z_STRLEN_P(value) = new_len; in php_filter_string()
199 if (new_len == 0) { in php_filter_string()
/php-src/sapi/phpdbg/
H A Dphpdbg_utils.c197 PHPDBG_API char *phpdbg_trim(const char *str, size_t len, size_t *new_len) /* {{{ */ in phpdbg_trim() argument
213 *new_len = 0; in phpdbg_trim()
218 if (new_len) { in phpdbg_trim()
219 *new_len = len; in phpdbg_trim()
/php-src/win32/
H A Dioutil.c601 …_normalization_result php_win32_ioutil_normalize_path_w(wchar_t **buf, size_t len, size_t *new_len) in php_win32_ioutil_normalize_path_w() argument
608 *new_len = 0; in php_win32_ioutil_normalize_path_w()
624 *new_len = len; in php_win32_ioutil_normalize_path_w()
634 *new_len = len; in php_win32_ioutil_normalize_path_w()
641 *new_len = ret_len; in php_win32_ioutil_normalize_path_w()
H A Dioutil.h171 …normalization_result php_win32_ioutil_normalize_path_w(wchar_t **buf, size_t len, size_t *new_len);
/php-src/ext/pcre/
H A Dphp_pcre.c1609 size_t new_len; /* Length of needed storage */ in php_pcre_replace_impl() local
1691 new_len = result_len + offsets[0] - last_end_offset; /* part before the match */ in php_pcre_replace_impl()
1707 new_len += offsets[(backref<<1)+1] - offsets[backref<<1]; in php_pcre_replace_impl()
1711 new_len++; in php_pcre_replace_impl()
1716 if (new_len >= alloc_len) { in php_pcre_replace_impl()
1717 alloc_len = zend_safe_address_guarded(2, new_len, ZSTR_MAX_OVERHEAD) - ZSTR_MAX_OVERHEAD; in php_pcre_replace_impl()
1849 size_t new_len; /* Length of needed storage */ in php_pcre_replace_func_impl() local
1944 new_len = result_len + offsets[0] - last_end_offset; /* part before the match */ in php_pcre_replace_func_impl()
1952new_len = zend_safe_address_guarded(1, ZSTR_LEN(eval_result) + ZSTR_MAX_OVERHEAD, new_len) -ZSTR_M… in php_pcre_replace_func_impl()
1953 if (new_len >= alloc_len) { in php_pcre_replace_func_impl()
[all …]
/php-src/ext/pgsql/
H A Dpgsql.c4223 size_t new_len; in php_pgsql_meta_data() local
4262 new_len = PQescapeStringConn(pg_link, escaped, tmp_name2, strlen(tmp_name2), NULL); in php_pgsql_meta_data()
4263 if (new_len) { in php_pgsql_meta_data()
4264 smart_str_appendl(&querystr, escaped, new_len); in php_pgsql_meta_data()
4270 new_len = PQescapeStringConn(pg_link, escaped, tmp_name, strlen(tmp_name), NULL); in php_pgsql_meta_data()
4271 if (new_len) { in php_pgsql_meta_data()
4272 smart_str_appendl(&querystr, escaped, new_len); in php_pgsql_meta_data()
5327 size_t new_len; in php_pgsql_insert() local
5330 new_len = PQescapeStringConn(pg_link, tmp, Z_STRVAL_P(val), Z_STRLEN_P(val), NULL); in php_pgsql_insert()
5332 smart_str_appendl(&querystr, tmp, new_len); in php_pgsql_insert()
[all …]
/php-src/ext/session/
H A Dphp_session.h253 PHPAPI void session_adapt_url(const char *url, size_t url_len, char **new_url, size_t *new_len);
H A Dsession.c1662 PHPAPI void session_adapt_url(const char *url, size_t url_len, char **new_url, size_t *new_len) /* … in session_adapt_url() argument
1665 …l = php_url_scanner_adapt_single_url(url, url_len, PS(session_name), ZSTR_VAL(PS(id)), new_len, 1); in session_adapt_url()
/php-src/ext/standard/
H A Dfile.c2024 size_t new_len; in php_fgetcsv() local
2025 char *new_buf = php_stream_get_line(stream, NULL, 0, &new_len); in php_fgetcsv()
2042 temp_len += new_len; in php_fgetcsv()
2048 buf_len = new_len; in php_fgetcsv()
/php-src/ext/soap/
H A Dphp_encoding.c837 int new_len; in to_xml_string() local
845 new_len = Z_STRLEN_P(data); in to_xml_string()
849 new_len = ZSTR_LEN(tmp); in to_xml_string()
854 xmlBufferPtr in = xmlBufferCreateStatic(str, new_len); in to_xml_string()
861 new_len = n; in to_xml_string()
868 char *err = emalloc(new_len + 8); in to_xml_string()
872 memcpy(err, str, new_len+1); in to_xml_string()
908 text = xmlNewTextLen(BAD_CAST(str), new_len); in to_xml_string()
/php-src/ext/phar/
H A Dphar_internal.h551 char *phar_fix_filepath(char *path, size_t *new_len, int use_cwd);
H A Dphar.c2131 char *phar_fix_filepath(char *path, size_t *new_len, int use_cwd) /* {{{ */ in phar_fix_filepath() argument
2137 size_t ptr_length, path_length = *new_len; in phar_fix_filepath()
2166 *new_len = 1; in phar_fix_filepath()
2174 *new_len = 1; in phar_fix_filepath()
2227 *new_len = newpath_len; in phar_fix_filepath()
H A Dphar_object.c1983 size_t new_len, oldname_len, phar_ext_len; in phar_rename_archive() local
2107 new_len = spprintf(&newpath, 0, "%s%s", basepath, newname); in phar_rename_archive()
2108 phar->fname_len = new_len; in phar_rename_archive()
/php-src/ext/opcache/
H A Dzend_file_cache.c260 size_t new_len = info->str_size + len; local
263 ((_ZSTR_HEADER_SIZE + 1 + new_len + 4095) & ~0xfff) - (_ZSTR_HEADER_SIZE + 1),

Completed in 113 milliseconds