diff options
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);  | 
