summaryrefslogtreecommitdiff
path: root/sapi/cgi
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-01-29 19:36:01 +0000
committerDmitry Stogov <dmitry@php.net>2007-01-29 19:36:01 +0000
commitd44cb7fa7b9b7db8f1095de064dba6943bc2197e (patch)
tree696066abc441fb063f051513072b24fbeb950f28 /sapi/cgi
parent3265d023a466280eb54846daef5602d7981b2564 (diff)
downloadphp-git-d44cb7fa7b9b7db8f1095de064dba6943bc2197e.tar.gz
Prevent flush of closed handle on php_module_shutdown()
Diffstat (limited to 'sapi/cgi')
-rw-r--r--sapi/cgi/cgi_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index a0f0e4c5da..65c3e28dd1 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -1519,6 +1519,7 @@ consult the installation file that came with this distribution, or visit \n\
case 'i': /* php info & quit */
if (php_request_startup(TSRMLS_C) == FAILURE) {
+ SG(server_context) = NULL;
php_module_shutdown(TSRMLS_C);
return FAILURE;
}
@@ -1566,6 +1567,7 @@ consult the installation file that came with this distribution, or visit \n\
case 'v': /* show php version & quit */
no_headers = 1;
if (php_request_startup(TSRMLS_C) == FAILURE) {
+ SG(server_context) = NULL;
php_module_shutdown(TSRMLS_C);
return FAILURE;
}
@@ -1673,6 +1675,7 @@ consult the installation file that came with this distribution, or visit \n\
fcgi_finish_request(&request);
}
#endif
+ SG(server_context) = NULL;
php_module_shutdown(TSRMLS_C);
return FAILURE;
}
@@ -1705,6 +1708,7 @@ consult the installation file that came with this distribution, or visit \n\
}
#endif
php_request_shutdown((void *) 0);
+ SG(server_context) = NULL;
php_module_shutdown(TSRMLS_C);
return FAILURE;
}