/PHP-5.6/Zend/ |
H A D | zend_string.h | 71 #define str_erealloc(str, new_len) \ argument 73 ? _str_erealloc(str, new_len, INTERNED_LEN(str)) \ 74 : erealloc(str, new_len)) 76 static inline char *_str_erealloc(char *str, size_t new_len, size_t old_len) { 77 char *buf = (char *) emalloc(new_len);
|
/PHP-5.6/ext/xmlrpc/libxmlrpc/ |
H A D | encodings.c | 60 static char* convert(const char* src, int src_len, int *new_len, const char* from_enc, const char* … in convert() argument 105 if(new_len) { in convert() 106 *new_len = outbuf ? outlen : 0; in convert()
|
H A D | xml_element.c | 644 int new_len = 0; in _xmlrpc_charHandler() local 645 char* add_text = utf8_decode(s, len, &new_len, mydata->input_options->encoding); in _xmlrpc_charHandler() 647 len = new_len; in _xmlrpc_charHandler()
|
/PHP-5.6/ext/zip/lib/ |
H A D | zip_extra_field_api.c | 241 int i, found, new_len; in zip_file_extra_field_set() local 296 new_len = ls > cs ? ls : cs; in zip_file_extra_field_set() 298 new_len -= ef->size + 4; in zip_file_extra_field_set() 299 new_len += len + 4; in zip_file_extra_field_set() 301 if (new_len > ZIP_UINT16_MAX) { in zip_file_extra_field_set()
|
/PHP-5.6/ext/filter/ |
H A D | sanitizing_filters.c | 181 size_t new_len; in php_filter_string() local 203 new_len = php_strip_tags_ex(Z_STRVAL_P(value), Z_STRLEN_P(value), NULL, NULL, 0, 1); in php_filter_string() 204 Z_STRLEN_P(value) = new_len; in php_filter_string() 206 if (new_len == 0) { in php_filter_string()
|
/PHP-5.6/sapi/phpdbg/ |
H A D | phpdbg_utils.c | 197 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-5.6/ext/pcre/ |
H A D | php_pcre.c | 1078 size_t new_len; /* Length of needed storage */ in php_pcre_replace_impl() local 1187 new_len += eval_result_len; in php_pcre_replace_impl() 1191 new_len += eval_result_len; in php_pcre_replace_impl() 1204 new_len += offsets[(backref<<1)+1] - offsets[backref<<1]; in php_pcre_replace_impl() 1208 new_len++; in php_pcre_replace_impl() 1214 if (new_len + 1 > alloc_len) { in php_pcre_replace_impl() 1215 new_buf = safe_emalloc(2, new_len + 1, alloc_len); in php_pcre_replace_impl() 1216 alloc_len = 1 + alloc_len + 2 * (size_t)new_len; in php_pcre_replace_impl() 1277 new_len = *result_len + subject_len - start_offset; in php_pcre_replace_impl() 1278 if (new_len + 1 > alloc_len) { in php_pcre_replace_impl() [all …]
|
/PHP-5.6/ext/standard/ |
H A D | html.c | 1454 size_t new_len; in php_html_entities() local 1466 …replaced = php_escape_html_entities_ex(str, str_len, &new_len, all, (int) flags, hint_charset, dou… in php_html_entities() 1468 RETVAL_STRINGL(replaced, (int)new_len, 0); in php_html_entities() 1508 size_t new_len = 0; in PHP_FUNCTION() local 1516 …replaced = php_unescape_html_entities(str, str_len, &new_len, 0 /*!all*/, quote_style, NULL TSRMLS… in PHP_FUNCTION() 1518 RETURN_STRINGL(replaced, (int)new_len, 0); in PHP_FUNCTION() 1530 size_t new_len = 0; in PHP_FUNCTION() local 1542 …replaced = php_unescape_html_entities(str, str_len, &new_len, 1 /*all*/, quote_style, hint_charset… in PHP_FUNCTION() 1545 RETURN_STRINGL(replaced, (int)new_len, 0); in PHP_FUNCTION()
|
H A D | info.c | 66 size_t new_len; in php_info_print_html_esc() local 71 …new_str = php_escape_html_entities((unsigned char *) str, len, &new_len, 0, ENT_QUOTES, "utf-8" TS… in php_info_print_html_esc() 72 written = php_output_write(new_str, new_len TSRMLS_CC); in php_info_print_html_esc() 289 size_t new_len; in php_info_html_esc() local 290 …return php_escape_html_entities((unsigned char *) string, strlen(string), &new_len, 0, ENT_QUOTES,… in php_info_html_esc()
|
H A D | file.c | 2132 size_t new_len; in php_fgetcsv() local 2147 } else if ((new_buf = php_stream_get_line(stream, NULL, 0, &new_len)) == NULL) { in php_fgetcsv() 2159 temp_len += new_len; in php_fgetcsv() 2165 buf_len = new_len; in php_fgetcsv()
|
H A D | string.c | 2619 size_t new_len; local 2654 new_len = q - str; 2655 if (UNEXPECTED(new_len > INT_MAX)) { 2660 RETURN_STRINGL(erealloc(str, new_len + 1), new_len, 0);
|
/PHP-5.6/ext/pgsql/ |
H A D | pgsql.c | 812 size_t new_len; 820 strncpy(rp, tmp, new_len); 822 rp += new_len; 5472 size_t new_len; local 5515 if (new_len) { 5516 smart_str_appendl(&querystr, escaped, new_len); 5523 if (new_len) { 6606 size_t new_len; local 6611 smart_str_appendl(&querystr, tmp, new_len); 6782 size_t new_len; local [all …]
|
/PHP-5.6/ext/wddx/ |
H A D | wddx.c | 965 int new_len=0; in php_wddx_pop_element() local 968 new_str = php_base64_decode(Z_STRVAL_P(ent1->data), Z_STRLEN_P(ent1->data), &new_len); in php_wddx_pop_element() 972 Z_STRLEN_P(ent1->data) = new_len; in php_wddx_pop_element()
|
/PHP-5.6/ext/soap/ |
H A D | php_encoding.c | 871 int new_len; in to_xml_string() local 879 new_len = Z_STRLEN_P(data); in to_xml_string() 886 new_len = Z_STRLEN(tmp); in to_xml_string() 891 xmlBufferPtr in = xmlBufferCreateStatic(str, new_len); in to_xml_string() 898 new_len = n; in to_xml_string() 905 char *err = emalloc(new_len + 8); in to_xml_string() 909 memcpy(err, str, new_len+1); in to_xml_string() 945 text = xmlNewTextLen(BAD_CAST(str), new_len); in to_xml_string()
|
H A D | soap.c | 4031 size_t new_len; local 4033 …scape_html_entities((unsigned char*)Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), &new_len, 0, 0, NULL TSRML… 4041 xmlNodeSetContentLen(node, BAD_CAST(str), (int)new_len); 4057 size_t new_len; local 4059 …scape_html_entities((unsigned char*)Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), &new_len, 0, 0, NULL TSRML… 4067 xmlNodeSetContentLen(node, BAD_CAST(str), (int)new_len);
|
/PHP-5.6/ext/phar/ |
H A D | phar_internal.h | 579 char *phar_fix_filepath(char *path, int *new_len, int use_cwd TSRMLS_DC);
|
H A D | phar.c | 2134 char *phar_fix_filepath(char *path, int *new_len, int use_cwd TSRMLS_DC) /* {{{ */ argument 2140 int ptr_length, path_length = *new_len; 2169 *new_len = 1; 2177 *new_len = 1; 2230 *new_len = newpath_len;
|
/PHP-5.6/ |
H A D | UPGRADING.INTERNALS | 138 str_erealloc(str, new_len) - erealloc() or emalloc+memcpy if interned
|
/PHP-5.6/ext/mbstring/ |
H A D | mbstring.c | 3070 int str_len, new_len; in PHP_FUNCTION() local 3079 …meters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|z", &arg_str, &str_len, &arg_new, &new_len, &arg_old) == FAI… in PHP_FUNCTION()
|