diff options
| author | Michael Wallner <mike@php.net> | 2014-08-21 22:41:36 +0200 |
|---|---|---|
| committer | Michael Wallner <mike@php.net> | 2014-08-21 22:41:36 +0200 |
| commit | 54fbbded372b771cf281a73e1981cde642107924 (patch) | |
| tree | 887cef65037dd0b47222f8ec65d010d18f2e5354 /ext | |
| parent | 9185cfd53960336ca3b041342a9ac5efeebf3a14 (diff) | |
| download | php-git-54fbbded372b771cf281a73e1981cde642107924.tar.gz | |
fix bug #67865
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/zlib/zlib_filter.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/zlib/zlib_filter.c b/ext/zlib/zlib_filter.c index 47a68e264f..9458d6863e 100644 --- a/ext/zlib/zlib_filter.c +++ b/ext/zlib/zlib_filter.c @@ -310,8 +310,7 @@ static php_stream_filter *php_zlib_filter_create(const char *filtername, zval *f data->strm.zalloc = (alloc_func) php_zlib_alloc; data->strm.zfree = (free_func) php_zlib_free; - data->strm.avail_out = data->outbuf_len = 0x8000; - data->inbuf_len = 2048; + data->strm.avail_out = data->outbuf_len = data->inbuf_len = 0x8000; data->strm.next_in = data->inbuf = (Bytef *) pemalloc(data->inbuf_len, persistent); if (!data->inbuf) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %zd bytes", data->inbuf_len); |
