]> granicus.if.org Git - php/commitdiff
Fixed bug #49014 (dechunked filter broken when serving more than 8192 bytes in
authorIlia Alshanetsky <iliaa@php.net>
Thu, 23 Jul 2009 12:18:40 +0000 (12:18 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 23 Jul 2009 12:18:40 +0000 (12:18 +0000)
a chunk)

# Original patch by andreas dot streichardt at globalpark dot com

NEWS
ext/standard/filters.c

diff --git a/NEWS b/NEWS
index 3b87997a980d94ea5c135a9d377cfd63f11e8aa0..b18f7661b750079b4dda3d189b704015f8d4bb7d 100644 (file)
--- 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)
index c69e10f3e1523338528cf85842fb94237a6d1bfd..75215e8bbf1e6cee78f82ed09dfda8186787b081 100644 (file)
@@ -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;
                                }