Skip to content

Commit

Permalink
Fix #81496: CLI server logs wrong request method
Browse files Browse the repository at this point in the history
  • Loading branch information
Metabolix authored and krakjoe committed Oct 5, 2021
1 parent a00d933 commit cdcdb33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS
Expand Up @@ -2,6 +2,9 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2021, PHP 8.0.12

- CLI:
. Fixed bug #81496 (Server logs incorrect request method). (lauri)

- Core:
. Fixed bug #81435 (Observer current_observed_frame may point to an old
(overwritten) frame). (Bob)
Expand Down
2 changes: 1 addition & 1 deletion sapi/cli/php_cli_server.c
Expand Up @@ -1152,7 +1152,7 @@ static void php_cli_server_log_response(php_cli_server_client *client, int statu
#endif

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

0 comments on commit cdcdb33

Please sign in to comment.