]> granicus.if.org Git - php/commitdiff
Include the request method in CLI server logs
authorSimon Welsh <simon@welsh-au.com>
Thu, 2 May 2019 09:58:24 +0000 (19:58 +1000)
committerKalle Sommer Nielsen <kalle@php.net>
Thu, 2 May 2019 20:32:22 +0000 (23:32 +0300)
sapi/cli/php_cli_server.c

index 6889278bcac700b8eefa329ad6250b47244855ef..be64ff9924e97e2f7537eda7712cd09f3ec6171d 100644 (file)
@@ -1120,7 +1120,7 @@ static void php_cli_server_log_response(php_cli_server_client *client, int statu
 #endif
 
        /* basic */
-       spprintf(&basic_buf, 0, "%s [%d]: %s", client->addr_str, status, client->request.request_uri);
+       spprintf(&basic_buf, 0, "%s [%d]: %s %s", client->addr_str, status, SG(request_info).request_method, client->request.request_uri);
        if (!basic_buf) {
                return;
        }