summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_php_sapi.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-05-21 16:14:24 +0300
committerValentin Bartenev <vbart@nginx.com>2018-05-21 16:14:24 +0300
commit3e8dbfe5ffdfbf525dd115508dc28d15bb81a237 (patch)
tree5f733eeaa090b0e8b14ac3de4d1a306a15628ed6 /src/nxt_php_sapi.c
parent8a156a9fc410eaf8898b757f294d91031e596a11 (diff)
downloadunit-3e8dbfe5ffdfbf525dd115508dc28d15bb81a237.tar.gz
unit-3e8dbfe5ffdfbf525dd115508dc28d15bb81a237.tar.bz2
Added SERVER_SOFTWARE request meta-variable.
Diffstat (limited to 'src/nxt_php_sapi.c')
-rw-r--r--src/nxt_php_sapi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_php_sapi.c b/src/nxt_php_sapi.c
index a7bfaac2..5a4dfe64 100644
--- a/src/nxt_php_sapi.c
+++ b/src/nxt_php_sapi.c
@@ -668,6 +668,8 @@ nxt_php_register_variables(zval *track_vars_array TSRMLS_DC)
php_register_variable_safe((char *) (n), (char *) (v).start, \
(v).length, track_vars_array TSRMLS_CC) \
+ NXT_PHP_SET("SERVER_SOFTWARE", nxt_server);
+
NXT_PHP_SET("SERVER_PROTOCOL", h->version);
/*