Skip to content

Commit b89985a

Browse files
author
Ilia Alshanetsky
committed
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
1 parent 4744223 commit b89985a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

NEWS

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ PHP NEWS
1616
(Ilia)
1717
- Fixed bug #48929 (Double \r\n after HTTP headers when "header" context
1818
option is an array). (David Zülke)
19+
- Fixed bug #49014 (dechunked filter broken when serving more than 8192 bytes in
20+
a chunk) (andreas dot streichardt at globalpark dot com, Ilia)
1921
- Fixed bug #48899 (is_callable returns true even if method does not exist in
2022
parent class). (Felipe)
2123
- Fixed bug #48893 (Problems compiling with Curl). (Felipe)

ext/standard/filters.c

+1
Original file line numberDiff line numberDiff line change
@@ -2007,6 +2007,7 @@ static int php_dechunk(char *buf, int len, php_chunked_filter_data *data)
20072007
memmove(out, p, end - p);
20082008
}
20092009
data->chunk_size -= end - p;
2010+
data->state=CHUNK_BODY;
20102011
out_len += end - p;
20112012
return out_len;
20122013
}

0 commit comments

Comments
 (0)