summaryrefslogtreecommitdiff
path: root/sapi/apache2handler/sapi_apache2.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2015-04-04 15:03:46 -0700
committerStanislav Malyshev <stas@php.net>2015-04-04 15:09:34 -0700
commitaf1cd45d171fbb06712f846cec7bf69438db8ec2 (patch)
tree3caffe4028abf2fb044bc72d877d2978db533e77 /sapi/apache2handler/sapi_apache2.c
parent80e263277600b5e62acfc993a308b8174f70581e (diff)
downloadphp-git-af1cd45d171fbb06712f846cec7bf69438db8ec2.tar.gz
Fix bug #68486 and bug #69218 (segfault in apache2handler with apache 2.4)
Diffstat (limited to 'sapi/apache2handler/sapi_apache2.c')
-rw-r--r--sapi/apache2handler/sapi_apache2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c
index e97f11c69b..cfebc5f5c6 100644
--- a/sapi/apache2handler/sapi_apache2.c
+++ b/sapi/apache2handler/sapi_apache2.c
@@ -688,6 +688,7 @@ zend_first_try {
} zend_end_try();
}
apr_brigade_cleanup(brigade);
+ apr_pool_cleanup_run(r->pool, (void *)&SG(server_context), php_server_context_cleanup);
} else {
ctx->r = parent_req;
}