bzcompress() bugfix

From: Date: Tue, 13 Nov 2001 10:09:06 +0000
Subject: bzcompress() bugfix
Groups: php.dev 
Request: Send a blank email to php-dev+get-70336@lists.php.net to get a copy of this message
Hi, I suggest MFH'ing the test for bz2. The problem is that size isn't initialized at the time when it's passed to buff-compress. I attached a patch to HEAD, for the PHP_4_0_7 branch I don't have a patch yet, as I don't have more time currently to test it etc, but it should be straight forward to adapt it to PHP_4_0_7. I tested this patch. It makes the test work, and a test on a big file too. The original intention was and is to not use buff(de)compress but those stream functions in bzlib, in order to just (de)compress one time, in stead of retrying all the time, but I didn't yet finish that. --Jeroen Jeroen van Wolffelaar Jeroen@A-Eskwadraat.nl http://jeroen.A-Eskwadraat.nl

« previous php.dev (#70336) next »