diff options
| author | Greg Beaver <cellog@php.net> | 2008-01-09 08:12:33 +0000 |
|---|---|---|
| committer | Greg Beaver <cellog@php.net> | 2008-01-09 08:12:33 +0000 |
| commit | 686f30d1180b0ede18243f59fe7c5df15c79e7e1 (patch) | |
| tree | d1b4b8e51f8ee147fcbe5326b12facb96d3a5caa | |
| parent | b5c42440692dd69db9583244265314f1cf05effe (diff) | |
| download | php-git-686f30d1180b0ede18243f59fe7c5df15c79e7e1.tar.gz | |
apply proper fix of bug #43793 to zlib.deflate (window+16 = gzip)
| -rw-r--r-- | ext/zlib/zlib_filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zlib/zlib_filter.c b/ext/zlib/zlib_filter.c index 566d60ef52..976c04d432 100644 --- a/ext/zlib/zlib_filter.c +++ b/ext/zlib/zlib_filter.c @@ -367,7 +367,7 @@ static php_stream_filter *php_zlib_filter_create(const char *filtername, zval *f /* log-2 base of history window (9 - 15) */ SEPARATE_ZVAL(tmpzval); convert_to_long_ex(tmpzval); - if (Z_LVAL_PP(tmpzval) < -MAX_WBITS || Z_LVAL_PP(tmpzval) > MAX_WBITS + 32) { + if (Z_LVAL_PP(tmpzval) < -MAX_WBITS || Z_LVAL_PP(tmpzval) > MAX_WBITS + 16) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid parameter give for window size. (%ld)", Z_LVAL_PP(tmpzval)); } else { windowBits = Z_LVAL_PP(tmpzval); |
