Skip to content

Commit e50dc16

Browse files
author
Stefan Roehrich
committed
Comment about maximal length now matches code.
1 parent cef4533 commit e50dc16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/zlib/zlib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ PHP_FUNCTION(gzuncompress)
488488
/*
489489
zlib::uncompress() wants to know the output data length
490490
if none was given as a parameter
491-
we try from input length * 2 up to input length * 2^8
491+
we try from input length * 2 up to input length * 2^15
492492
doubling it whenever it wasn't big enough
493493
that should be eneugh for all real life cases
494494
*/
@@ -616,7 +616,7 @@ PHP_FUNCTION(gzinflate)
616616
/*
617617
stream.avail_out wants to know the output data length
618618
if none was given as a parameter
619-
we try from input length * 2 up to input length * 2^16
619+
we try from input length * 2 up to input length * 2^15
620620
doubling it whenever it wasn't big enough
621621
that should be enaugh for all real life cases
622622
*/

0 commit comments

Comments
 (0)