summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorDoug MacEachern <dougm@php.net>2001-12-06 19:03:29 +0000
committerDoug MacEachern <dougm@php.net>2001-12-06 19:03:29 +0000
commit543d76185dae58dc372ff973ee10a59e60442590 (patch)
tree1f0b11c633d368e0219ac9882c7d04e5fae38ccb /sapi
parent71028d46cf42ebfa95f9f32d643a001d22a6da03 (diff)
downloadphp-git-543d76185dae58dc372ff973ee10a59e60442590.tar.gz
need to call ap_destroy_sub_req() before RETURN_TRUE in apache_sub_req()
(Jon Parise <jon@php.net>)
Diffstat (limited to 'sapi')
-rw-r--r--sapi/apache2filter/php_functions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache2filter/php_functions.c b/sapi/apache2filter/php_functions.c
index a805dd0511..395d2edad6 100644
--- a/sapi/apache2filter/php_functions.c
+++ b/sapi/apache2filter/php_functions.c
@@ -61,8 +61,8 @@ PHP_FUNCTION(apache_sub_req)
if (rr->status == HTTP_OK) {
ap_run_sub_req(rr);
- RETURN_TRUE;
ap_destroy_sub_req(rr);
+ RETURN_TRUE;
}
ap_destroy_sub_req(rr);
RETURN_FALSE;