Skip to content

Commit 03e9bed

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Fix #81496: CLI server logs wrong request method
2 parents cd84480 + cdcdb33 commit 03e9bed

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.1.0RC4
44

5+
- CLI:
6+
. Fixed bug #81496 (Server logs incorrect request method). (lauri)
7+
58
- Core:
69
. Fixed bug #75941 (Fix compile failure on Solaris with clang). (Jaromír
710
Doleček)

sapi/cli/php_cli_server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ static void php_cli_server_log_response(php_cli_server_client *client, int statu
11521152
#endif
11531153

11541154
/* basic */
1155-
spprintf(&basic_buf, 0, "%s [%d]: %s %s", client->addr_str, status, SG(request_info).request_method, client->request.request_uri);
1155+
spprintf(&basic_buf, 0, "%s [%d]: %s %s", client->addr_str, status, php_http_method_str(client->request.request_method), client->request.request_uri);
11561156
if (!basic_buf) {
11571157
return;
11581158
}

0 commit comments

Comments
 (0)