From b6c0003ffdf89b4fc5e2e537bac9133c63fba104 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Mon, 8 Dec 2003 00:22:22 +0000 Subject: [PATCH] Fix a convert filters bug that occurs when multiple buckets are coming in. --- ext/standard/filters.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.50.1