mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
This commit is contained in:
parent
aee85bc163
commit
aee5a9864d
2
NEWS
2
NEWS
@ -49,6 +49,8 @@ PHP NEWS
|
||||
SessionHandler::write()). (Ilia)
|
||||
|
||||
- SOAP
|
||||
. Fixed bug #60842, #51775 (Chunked response parsing error when
|
||||
chunksize length line is > 10 bytes). (Ilia)
|
||||
. Fixed bug #60887 (SoapClient ignores user_agent option and sends no
|
||||
User-Agent header). (carloschilazo at gmail dot com)
|
||||
|
||||
|
@ -1313,15 +1313,15 @@ static int get_http_body(php_stream *stream, int close, char *headers, char **r
|
||||
}
|
||||
|
||||
if (header_chunked) {
|
||||
char ch, done, chunk_size[10], headerbuf[8192];
|
||||
char ch, done, headerbuf[8192];
|
||||
|
||||
done = FALSE;
|
||||
|
||||
while (!done) {
|
||||
int buf_size = 0;
|
||||
|
||||
php_stream_gets(stream, chunk_size, sizeof(chunk_size));
|
||||
if (sscanf(chunk_size, "%x", &buf_size) > 0 ) {
|
||||
php_stream_gets(stream, headerbuf, sizeof(headerbuf));
|
||||
if (sscanf(headerbuf, "%x", &buf_size) > 0 ) {
|
||||
if (buf_size > 0) {
|
||||
int len_size = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user