From: Ilia Alshanetsky Date: Thu, 23 Jul 2009 12:18:40 +0000 (+0000) Subject: Fixed bug #49014 (dechunked filter broken when serving more than 8192 bytes in X-Git-Tag: php-5.4.0alpha1~191^2~3015 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d25751680a06110e8cea4bbf6b67bd82bb0192e3;p=php Fixed bug #49014 (dechunked filter broken when serving more than 8192 bytes in a chunk) # Original patch by andreas dot streichardt at globalpark dot com --- diff --git a/ext/standard/filters.c b/ext/standard/filters.c index 2acf73a532..726d48daa5 100644 --- a/ext/standard/filters.c +++ b/ext/standard/filters.c @@ -2088,6 +2088,7 @@ static int php_dechunk(char *buf, int len, php_chunked_filter_data *data) memmove(out, p, end - p); } data->chunk_size -= end - p; + data->state=CHUNK_BODY; out_len += end - p; return out_len; }