Lines Matching refs:alloc_len
1622 size_t alloc_len; /* Actual allocated length */ in php_pcre_replace_impl() local
1639 alloc_len = 0; in php_pcre_replace_impl()
1727 if (new_len >= alloc_len) { in php_pcre_replace_impl()
1728 alloc_len = zend_safe_address_guarded(2, new_len, ZSTR_MAX_OVERHEAD) - ZSTR_MAX_OVERHEAD; in php_pcre_replace_impl()
1730 result = zend_string_alloc(alloc_len, 0); in php_pcre_replace_impl()
1732 result = zend_string_extend(result, alloc_len, 0); in php_pcre_replace_impl()
1815 alloc_len = result_len + subject_len - last_end_offset; in php_pcre_replace_impl()
1817 result = zend_string_realloc(result, alloc_len, 0); in php_pcre_replace_impl()
1819 result = zend_string_alloc(alloc_len, 0); in php_pcre_replace_impl()
1863 size_t alloc_len; /* Actual allocated length */ in php_pcre_replace_func_impl() local
1889 alloc_len = 0; in php_pcre_replace_func_impl()
1965 if (new_len >= alloc_len) { in php_pcre_replace_func_impl()
1966 alloc_len = zend_safe_address_guarded(2, new_len, ZSTR_MAX_OVERHEAD) - ZSTR_MAX_OVERHEAD; in php_pcre_replace_func_impl()
1968 result = zend_string_alloc(alloc_len, 0); in php_pcre_replace_func_impl()
1970 result = zend_string_extend(result, alloc_len, 0); in php_pcre_replace_func_impl()
2024 alloc_len = result_len + subject_len - last_end_offset; in php_pcre_replace_func_impl()
2026 result = zend_string_realloc(result, alloc_len, 0); in php_pcre_replace_func_impl()
2028 result = zend_string_alloc(alloc_len, 0); in php_pcre_replace_func_impl()