cvs: php4 /sapi/cgi cgi_main.c

From: Date: Mon, 05 Mar 2001 01:26:36 +0000
Subject: cvs: php4 /sapi/cgi cgi_main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4397@lists.php.net to get a copy of this message
sniper Sun Mar 4 17:26:36 2001 EDT Modified files: /php4/sapi/cgi cgi_main.c Log: Can't output any error messages if there isn't any function initialized to do it.. # Bug report: #7650 Index: php4/sapi/cgi/cgi_main.c diff -u php4/sapi/cgi/cgi_main.c:1.96 php4/sapi/cgi/cgi_main.c:1.97 --- php4/sapi/cgi/cgi_main.c:1.96 Sat Mar 3 17:08:46 2001 +++ php4/sapi/cgi/cgi_main.c Sun Mar 4 17:26:36 2001 @@ -416,6 +416,9 @@ setmode(_fileno(stderr), O_BINARY); /* make the stdio mode be binary */ #endif + if (php_module_startup(&cgi_sapi_module)==FAILURE) { + return FAILURE; + } /* Make sure we detect we are a cgi - a bit redundancy here, but the default case is that we have to check only the first one. */ @@ -472,9 +475,6 @@ ap_php_optarg = orig_optarg; } - if (php_module_startup(&cgi_sapi_module)==FAILURE) { - return FAILURE; - } #ifdef ZTS compiler_globals = ts_resource(compiler_globals_id); executor_globals = ts_resource(executor_globals_id);

« previous php.cvs (#4397) next »