Merge branch 'PHP-8.1'

* PHP-8.1:
  Fix #81496: CLI server logs wrong request method
This commit is contained in:
Joe Watkins 2021-10-05 08:43:20 +02:00
commit e829284b53
No known key found for this signature in database
GPG key ID: F9BA0ADA31CBD89E
2 changed files with 4 additions and 1 deletions

View file

@ -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;
}