mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Fix GH-20554: php_cli_server() get http status as string build issue.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user