summaryrefslogtreecommitdiffstats
path: root/a782883c301e1f778f0f6c7b4891b66e283ae3bb.patch
diff options
context:
space:
mode:
Diffstat (limited to 'a782883c301e1f778f0f6c7b4891b66e283ae3bb.patch')
-rw-r--r--a782883c301e1f778f0f6c7b4891b66e283ae3bb.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/a782883c301e1f778f0f6c7b4891b66e283ae3bb.patch b/a782883c301e1f778f0f6c7b4891b66e283ae3bb.patch
new file mode 100644
index 0000000..9253355
--- /dev/null
+++ b/a782883c301e1f778f0f6c7b4891b66e283ae3bb.patch
@@ -0,0 +1,31 @@
+From a782883c301e1f778f0f6c7b4891b66e283ae3bb Mon Sep 17 00:00:00 2001
+From: neeke <neeke@php.net>
+Date: Tue, 19 Sep 2017 14:24:12 +0800
+Subject: [PATCH] update to #152
+
+---
+ src/Request.c | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/src/Request.c b/src/Request.c
+index 91eafa4..d34eb5d 100644
+--- a/src/Request.c
++++ b/src/Request.c
+@@ -136,8 +136,7 @@ static int seaslog_init_request_variable(TSRMLS_D)
+ if (!strncmp(sapi_module.name, "cli", sizeof("cli") - 1))
+ {
+ SEASLOG_G(request_variable)->request_uri = seaslog_request_query(SEASLOG_GLOBAL_VARS_SERVER, ZEND_STRL("SCRIPT_NAME") TSRMLS_CC);
+-
+- SEASLOG_G(request_variable)->request_method = seaslog_request_query(SEASLOG_GLOBAL_VARS_SERVER, ZEND_STRL("SUDO_COMMAND") TSRMLS_CC);
++ SEASLOG_G(request_variable)->request_method = seaslog_request_query(SEASLOG_GLOBAL_VARS_SERVER, ZEND_STRL("SHELL") TSRMLS_CC);
+
+ SEASLOG_G(request_variable)->domain_port_len = spprintf(&SEASLOG_G(request_variable)->domain_port, 0, "cli");
+ SEASLOG_G(request_variable)->client_ip_len = spprintf(&SEASLOG_G(request_variable)->client_ip, 0, "local");
+@@ -149,7 +148,6 @@ static int seaslog_init_request_variable(TSRMLS_D)
+ SEASLOG_ZVAL_PTR_DTOR(domain);
+
+ SEASLOG_G(request_variable)->request_uri = seaslog_request_query(SEASLOG_GLOBAL_VARS_SERVER, ZEND_STRL("REQUEST_URI") TSRMLS_CC);
+-
+ SEASLOG_G(request_variable)->request_method = seaslog_request_query(SEASLOG_GLOBAL_VARS_SERVER, ZEND_STRL("REQUEST_METHOD") TSRMLS_CC);
+
+ client_ip = seaslog_request_query(SEASLOG_GLOBAL_VARS_SERVER, ZEND_STRL("HTTP_X_REAL_IP") TSRMLS_CC);