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);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]