summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli_server.c
diff options
context:
space:
mode:
authorStanley Sufficool <ssufficool@php.net>2013-10-05 09:57:13 -0700
committerStanley Sufficool <ssufficool@php.net>2013-10-05 09:57:13 -0700
commitd74b9cfee528936a50af7772c3dc56843a068c7f (patch)
tree42c00e21011c95d6f493805ea870f419b42e7880 /sapi/cli/php_cli_server.c
parent690bbe170d9ed4597629e4e986575fbe0a2cb796 (diff)
parent3aaee86ee33af276d2e879f5a645cc6dc850de22 (diff)
downloadphp-git-d74b9cfee528936a50af7772c3dc56843a068c7f.tar.gz
Merge branch 'PHP-5.4' of https://git.php.net/push/php-src into PHP-5.4
* 'PHP-5.4' of https://git.php.net/push/php-src: - Fixed bug #65818 (Segfault with built-in webserver and chunked transfer encoding) - BFN Fix bug #65667: ftp_nb_continue produces segfault fix bug #64146 (serialize incorrectly saving objects when they are cloned) such a weird hack probably helps in finding regressions in the future Fixed bug #64230 (XMLReader does not suppress errors) typo: really fix bug #51936 Crash with clone xmlreader fix bug #59613 (Crash with clone XMLReader) fix bug #65808 the socket_connect() won't work with IPv6 address 5.4.22-dev now fix bug #62396 'make test' crashes starting with 5.3.14 (missing gzencode()) Fixed bug #61548 fix test fix memleak on resetting rebind_proc Fix bug #65322: compile time errors won't trigger auto loading 5.4.20 release date Add information about which INI file is which inside respective files - Updated to version 2013.6 (2013f)
Diffstat (limited to 'sapi/cli/php_cli_server.c')
-rw-r--r--sapi/cli/php_cli_server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c
index 4da55acc6c..aa4b2cd622 100644
--- a/sapi/cli/php_cli_server.c
+++ b/sapi/cli/php_cli_server.c
@@ -1589,6 +1589,7 @@ static int php_cli_server_client_read_request_on_body(php_http_parser *parser, c
}
client->request.content_len = 0;
}
+ client->request.content = perealloc(client->request.content, client->request.content_len + length, 1);
memmove(client->request.content + client->request.content_len, at, length);
client->request.content_len += length;
return 0;