dmitry          Thu Aug 31 13:11:58 2006 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/sapi/cgi   cgi_main.c 
  Log:
  FastCGI environment variables must not be overriden by system environment 
variables
  
  
http://cvs.php.net/viewvc.cgi/php-src/sapi/cgi/cgi_main.c?r1=1.267.2.15.2.9&r2=1.267.2.15.2.10&diff_format=u
Index: php-src/sapi/cgi/cgi_main.c
diff -u php-src/sapi/cgi/cgi_main.c:1.267.2.15.2.9 
php-src/sapi/cgi/cgi_main.c:1.267.2.15.2.10
--- php-src/sapi/cgi/cgi_main.c:1.267.2.15.2.9  Tue Jun 27 08:27:10 2006
+++ php-src/sapi/cgi/cgi_main.c Thu Aug 31 13:11:58 2006
@@ -21,7 +21,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: cgi_main.c,v 1.267.2.15.2.9 2006/06/27 08:27:10 tony2001 Exp $ */
+/* $Id: cgi_main.c,v 1.267.2.15.2.10 2006/08/31 13:11:58 dmitry Exp $ */
 
 #include "php.h"
 #include "php_globals.h"
@@ -472,6 +472,10 @@
            zval_copy_ctor(array_ptr);
            return;
        }
+       
+       /* call php's original import as a catch-all */
+       php_php_import_environment_variables(array_ptr TSRMLS_CC);
+
        if (fcgi_is_fastcgi()) {
                fcgi_request *request = (fcgi_request*) SG(server_context);
                HashPosition pos;
@@ -490,8 +494,6 @@
                }
                PG(magic_quotes_gpc) = magic_quotes_gpc;
        }
-       /* call php's original import as a catch-all */
-       php_php_import_environment_variables(array_ptr TSRMLS_CC);
 }
 #endif
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to