mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-7.0' into PHP-7.1
This commit is contained in:
commit
b38e6a54cf
1 changed files with 1 additions and 2 deletions
|
@ -1171,8 +1171,7 @@ PHP_FUNCTION(deflate_add)
|
|||
if (ctx->avail_out == 0) {
|
||||
/* more output buffer space needed; realloc and try again */
|
||||
/* adding 64 more bytes solved every issue I have seen */
|
||||
/* the + 1 is for the string terminator added below */
|
||||
out = zend_string_realloc(out, ZSTR_LEN(out) + 64 + 1, 0);
|
||||
out = zend_string_realloc(out, ZSTR_LEN(out) + 64, 0);
|
||||
ctx->avail_out = 64;
|
||||
ctx->next_out = (Bytef *) ZSTR_VAL(out) + buffer_used;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue