]> granicus.if.org Git - php/commitdiff
need to call ap_destroy_sub_req() before RETURN_TRUE in apache_sub_req()
authorDoug MacEachern <dougm@php.net>
Thu, 6 Dec 2001 19:03:29 +0000 (19:03 +0000)
committerDoug MacEachern <dougm@php.net>
Thu, 6 Dec 2001 19:03:29 +0000 (19:03 +0000)
(Jon Parise <jon@php.net>)

sapi/apache2filter/php_functions.c

index a805dd051162708e9e63c52fc60c7b3d470b924d..395d2edad6a90c46fe30704569b4d5709914e302 100644 (file)
@@ -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;