]> granicus.if.org Git - php/commitdiff
Removed a duplicate php_import_environment_variables() call
authorBen Mansell <joosters@php.net>
Fri, 4 May 2001 09:49:14 +0000 (09:49 +0000)
committerBen Mansell <joosters@php.net>
Fri, 4 May 2001 09:49:14 +0000 (09:49 +0000)
from fastcgi sapi

sapi/fastcgi/fastcgi.c

index 92b0e36c2a101adae26b3eaae58a35f1b35045cf..cc96a6d7f0712689757afa2e76fd51c7b261b13b 100644 (file)
@@ -126,10 +126,13 @@ static void sapi_fastcgi_register_variables(zval *track_vars_array ELS_DC SLS_DC
        char *self = getenv("REQUEST_URI");
        char *ptr = strchr( self, '?' );
 
-       /* 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);
+       /*
+         * note that the environment will already have been set up
+         * via fastcgi_module_main(), below.
+         *
+         * fastcgi_module_main() -> php_request_startup() ->
+         * php_hash_environment() -> php_import_environment_variables()
+         */
 
        /* strip query string off this */
        if ( ptr ) *ptr = 0;