summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2002-11-12 16:41:14 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2002-11-12 16:41:14 +0000
commitcb6202bbe8791e592e521420906943e9daf15299 (patch)
treed0648f5a7368ebe4a0e0c6c2ff0ebd326be91ee3 /sapi
parent0c395d0f4cf9275a11f3c71156fe0a3a1d329d36 (diff)
downloadphp-git-cb6202bbe8791e592e521420906943e9daf15299.tar.gz
reverting accidential commit
Diffstat (limited to 'sapi')
-rw-r--r--sapi/cgi/cgi_main.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index 89e94029e0..bd8e46bddf 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -522,7 +522,7 @@ static void php_register_command_line_global_vars(char **arg TSRMLS_DC)
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 @@ int main(int argc, char *argv[])
#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 @@ consult the installation file that came with this distribution, or visit \n\
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;