Skip to content

Commit e829284

Browse files
committed
Merge branch 'PHP-8.1'
* PHP-8.1: Fix #81496: CLI server logs wrong request method
2 parents 0c6c882 + 03e9bed commit e829284

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.2.0alpha1
44

5+
- CLI:
6+
. Fixed bug #81496 (Server logs incorrect request method). (lauri)
7+
58
- Core:
69
. Fixed bug #81380 (Observer may not be initialized properly). (krakjoe)
710

sapi/cli/php_cli_server.c

+1-1
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)