From: Moriyoshi Koizumi Date: Mon, 8 Dec 2003 00:22:22 +0000 (+0000) Subject: Fix a convert filters bug that occurs when multiple buckets are coming in. X-Git-Tag: php-5.0.0b3RC1~196 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6c0003ffdf89b4fc5e2e537bac9133c63fba104;p=php Fix a convert filters bug that occurs when multiple buckets are coming in. --- diff --git a/ext/standard/filters.c b/ext/standard/filters.c index ae7dfa8c4a..ce8be65ce3 100644 --- a/ext/standard/filters.c +++ b/ext/standard/filters.c @@ -1615,7 +1615,7 @@ static php_stream_filter_status_t strfilter_convert_filter( } /* update consumed by the number of bytes just used */ - consumed = bucket->buflen - icnt; + consumed += bucket->buflen - icnt; /* give output bucket to next in chain */ if (out_buf_size - ocnt > 0) {