1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.5'

* PHP-8.5:
  Fix GH-20554: php_cli_server() get http status as string build issue.
This commit is contained in:
David Carlier
2025-11-22 22:26:10 +00:00

View File

@@ -304,7 +304,7 @@ static int status_comp(const void *a, const void *b) /* {{{ */
static const char *get_status_string(int code) /* {{{ */
{
http_response_status_code_pair needle = {code, NULL},
const http_response_status_code_pair needle = {code, NULL},
*result = NULL;
result = bsearch(&needle, http_status_map, http_status_map_len, sizeof(needle), status_comp);