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.3.1RC1~315 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b89985ac55cb889bf0719ec93f7ffac1b3399d9d;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/NEWS b/NEWS index 3b87997a98..b18f7661b7 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,8 @@ PHP NEWS (Ilia) - Fixed bug #48929 (Double \r\n after HTTP headers when "header" context option is an array). (David Zülke) +- Fixed bug #49014 (dechunked filter broken when serving more than 8192 bytes in + a chunk) (andreas dot streichardt at globalpark dot com, Ilia) - Fixed bug #48899 (is_callable returns true even if method does not exist in parent class). (Felipe) - Fixed bug #48893 (Problems compiling with Curl). (Felipe) diff --git a/ext/standard/filters.c b/ext/standard/filters.c index c69e10f3e1..75215e8bbf 100644 --- a/ext/standard/filters.c +++ b/ext/standard/filters.c @@ -2007,6 +2007,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; }