From: Rasmus Lerdorf Date: Fri, 2 Mar 2012 03:38:04 +0000 (+0000) Subject: CLI Server was sending "Connection: closed" instead of "Connection: close" X-Git-Tag: PHP-5.4.1-RC1~109 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16748fe0fa927486e029e90b70970d4724a5a72e;p=php CLI Server was sending "Connection: closed" instead of "Connection: close" --- diff --git a/NEWS b/NEWS index d8fd8fc981..fc1218b93a 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,9 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2012, PHP 5.4.1 RC1 +- CLI Server: + . "Connection: close" instead of "Connection: closed" (Rasmus) + - Core: . Fixed bug #61225 (Incorect lexing of 0b00*+). (Pierrick) . Fixed bug #61165 (Segfault - strip_tags()). (Laruence) diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c index e8b6261978..11c3530318 100644 --- a/sapi/cli/php_cli_server.c +++ b/sapi/cli/php_cli_server.c @@ -351,7 +351,7 @@ static void append_essential_headers(smart_str* buffer, php_cli_server_client *c smart_str_appendl_ex(buffer, "\r\n", 2, persistent); } } - smart_str_appendl_ex(buffer, "Connection: closed\r\n", sizeof("Connection: closed\r\n") - 1, persistent); + smart_str_appendl_ex(buffer, "Connection: close\r\n", sizeof("Connection: close\r\n") - 1, persistent); } /* }}} */ static const char *get_mime_type(const char *ext, size_t ext_len) /* {{{ */