Re: cvs: php4 /sapi/cgi cgi_main.c

From: Date: Fri, 15 Nov 2002 15:16:26 +0000
Subject: Re: cvs: php4 /sapi/cgi cgi_main.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-16253@lists.php.net to get a copy of this message
Forget my previous Email :) Andi At 04:41 PM 11/12/2002 +0000, Hartmut Holzgraefe wrote:
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


« previous php.cvs (#16253) next »