diff options
| author | Zeev Suraski <zeev@php.net> | 2000-11-07 18:25:29 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2000-11-07 18:25:29 +0000 |
| commit | 9e40204f0004a84f45621f1790c29dc52f2784d2 (patch) | |
| tree | 50a7f719f7a9ae9300cebba6d7cb71f9ac5431c8 /sapi/cgi/cgi_main.c | |
| parent | 50e0d9d34b9b9669d0fa2682d060ff60ffc7a9e6 (diff) | |
| download | php-git-9e40204f0004a84f45621f1790c29dc52f2784d2.tar.gz | |
@- In CGI mode, $HTTP_SERVER_VARS now includes all of the environment variables
@ as well (Zeev)
Diffstat (limited to 'sapi/cgi/cgi_main.c')
| -rw-r--r-- | sapi/cgi/cgi_main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index c320fa2891..67ed3b80b5 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -148,6 +148,11 @@ static void sapi_cgi_register_variables(zval *track_vars_array ELS_DC SLS_DC PLS { char *pi; + /* In CGI mode, we consider the environment to be a part of the server + * variables + */ + php_import_environment_variables(track_vars_array ELS_CC PLS_CC); + /* Build the special-case PHP_SELF variable for the CGI version */ #if FORCE_CGI_REDIRECT php_register_variable("PHP_SELF", (SG(request_info).request_uri ? SG(request_info).request_uri:""), track_vars_array ELS_CC PLS_CC); |
