tony2001 Fri Aug 10 09:00:42 2007 UTC Modified files: /php-src/ext/bz2 bz2_filter.c Log: MFB: Fixed bug #42117 (bzip2.compress loses data in internal buffer) http://cvs.php.net/viewvc.cgi/php-src/ext/bz2/bz2_filter.c?r1=1.12&r2=1.13&diff_format=u Index: php-src/ext/bz2/bz2_filter.c diff -u php-src/ext/bz2/bz2_filter.c:1.12 php-src/ext/bz2/bz2_filter.c:1.13 --- php-src/ext/bz2/bz2_filter.c:1.12 Thu Jan 25 12:21:24 2007 +++ php-src/ext/bz2/bz2_filter.c Fri Aug 10 09:00:42 2007 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: bz2_filter.c,v 1.12 2007/01/25 12:21:24 tony2001 Exp $ */ +/* $Id: bz2_filter.c,v 1.13 2007/08/10 09:00:42 tony2001 Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -243,8 +243,8 @@ if (flags & PSFS_FLAG_FLUSH_CLOSE) { /* Spit it out! */ - status = BZ_OUTBUFF_FULL; - while (status == BZ_OUTBUFF_FULL) { + status = BZ_FINISH_OK; + while (status == BZ_FINISH_OK) { status = BZ2_bzCompress(&(data->strm), BZ_FINISH); if (data->strm.avail_out < data->outbuf_len) { size_t bucketlen = data->outbuf_len - data->strm.avail_out;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php