Re: cvs: php4 /ext/zlib zlib.c /main output.c

From: Date: Mon, 30 Sep 2002 10:21:54 +0000
Subject: Re: cvs: php4 /ext/zlib zlib.c /main output.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-14367@lists.php.net to get a copy of this message
s/recursion/loop/ On 09/30/02, "Wez Furlong" <wez.php@thebrainroom.com> wrote: > wez Mon Sep 30 06:18:06 2002 EDT > > Modified files: > /php4/ext/zlib zlib.c > /php4/main output.c > Log: > Fix infinite recursion bug when using zlib output compression. > Cause: the chunk size is taken from the zlib.output_compression setting, > which is 0 or 1. This causes the block_size for output buffer to be set > to 0 (1 / 2) and thus causes infinite recursion in php_ob_allocate(). > Solution: use a value of 0 for the chunk size which will use the default > sizes. Also add a sanity check which will default the block_size to 1 > if it ends up as 0.

« previous php.cvs (#14367) next »