From 3e8dbfe5ffdfbf525dd115508dc28d15bb81a237 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Mon, 21 May 2018 16:14:24 +0300 Subject: Added SERVER_SOFTWARE request meta-variable. --- src/nxt_php_sapi.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nxt_php_sapi.c') 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); /* -- cgit