Skip to content

Commit cdcdb33

Browse files
Metabolixkrakjoe
authored andcommitted
Fix #81496: CLI server logs wrong request method
1 parent a00d933 commit cdcdb33

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
?? ??? 2021, PHP 8.0.12
44

5+
- CLI:
6+
. Fixed bug #81496 (Server logs incorrect request method). (lauri)
7+
58
- Core:
69
. Fixed bug #81435 (Observer current_observed_frame may point to an old
710
(overwritten) frame). (Bob)

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)