hholzgra                Tue Nov 12 11:41:15 2002 EDT

  Modified files:              
    /php4/sapi/cgi      cgi_main.c 
  Log:
  reverting accidential commit
  
  
Index: php4/sapi/cgi/cgi_main.c
diff -u php4/sapi/cgi/cgi_main.c:1.188 php4/sapi/cgi/cgi_main.c:1.189
--- php4/sapi/cgi/cgi_main.c:1.188      Tue Nov 12 11:37:47 2002
+++ php4/sapi/cgi/cgi_main.c    Tue Nov 12 11:41:14 2002
@@ -522,7 +522,7 @@
 int main(int argc, char *argv[])
 {
        int exit_status = SUCCESS;
-       int cgi = 0, c, i, len, testmode = 0;
+       int cgi = 0, c, i, len;
        zend_file_handle file_handle;
        int retval = FAILURE;
        char *s;
@@ -573,10 +573,6 @@
 #endif
 #endif
 
-#ifndef PHP_FASTCGI
-       s = getenv("USER_AGENT");
-       if(s && !strcmp(s, "run-tests.php")) testmode = 1;
-#endif
 
 #ifdef ZTS
        tsrm_startup(1, 1, 0, NULL);
@@ -879,11 +875,11 @@
 
                zend_llist_init(&global_vars, sizeof(char *), NULL, 0);
 
-               if ( testmode || (!cgi
+               if (!cgi
 #ifdef PHP_FASTCGI
                        && !fastcgi
 #endif
-                       )) { /* never execute the arguments if you are a CGI unless in 
testmode*/       
+                       ) { /* never execute the arguments if you are a CGI */  
                        if (SG(request_info).argv0) {
                                free(SG(request_info).argv0);
                                SG(request_info).argv0 = NULL;



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

Reply via email to