Guest User

Untitled

a guest
Aug 20th, 2014
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. --- a/ext/zlib/zlib_filter.c
  2. +++ b/ext/zlib/zlib_filter.c
  3. @@ -302,8 +302,7 @@ static php_stream_filter *php_zlib_filter_create(const char *filtername, zval *f
  4.  
  5. data->strm.zalloc = (alloc_func) php_zlib_alloc;
  6. data->strm.zfree = (free_func) php_zlib_free;
  7. - data->strm.avail_out = data->outbuf_len = 0x8000;
  8. - data->inbuf_len = 2048;
  9. + data->strm.avail_out = data->outbuf_len = data->inbuf_len = 0x8000;
  10. data->strm.next_in = data->inbuf = (Bytef *) pemalloc(data->inbuf_len, persistent);
  11. if (!data->inbuf) {
  12. php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %zd bytes", data->inbuf_len);
Advertisement
Add Comment
Please, Sign In to add comment