From: Stanislav Malyshev Date: Mon, 6 Nov 2000 09:31:48 +0000 (+0000) Subject: I guess SG(request_info).argv0 and not !SG(request_info).argv0 was an intent, otherwi... X-Git-Tag: php-4.0.4RC3~303 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24035faa29e72ef2355bed2c6a36fc3a95fc059b;p=php I guess SG(request_info).argv0 and not !SG(request_info).argv0 was an intent, otherwise it doesn't make much sense. --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index bccf818715..01ca27fdbe 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -511,7 +511,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine zend_llist_init(&global_vars, sizeof(char *), NULL, 0); if (!cgi) { /* never execute the arguments if you are a CGI */ - if (!SG(request_info).argv0) { + if (SG(request_info).argv0) { free(SG(request_info).argv0); SG(request_info).argv0 = NULL; }