diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-05-21 16:14:24 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-05-21 16:14:24 +0300 |
commit | 3e8dbfe5ffdfbf525dd115508dc28d15bb81a237 (patch) | |
tree | 5f733eeaa090b0e8b14ac3de4d1a306a15628ed6 /src/nxt_php_sapi.c | |
parent | 8a156a9fc410eaf8898b757f294d91031e596a11 (diff) | |
download | unit-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.c | 2 |
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); /* |