From: Rasmus Lerdorf Date: Mon, 5 Jun 2000 21:19:21 +0000 (+0000) Subject: Fix virtual() when used with output buffering X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78d77c1476fd2b47ddaef826b4ab5fbc02cf3156;p=php Fix virtual() when used with output buffering @ Fix virtual() when used with output buffering (Marc Pohl) --- diff --git a/sapi/apache/php_apache.c b/sapi/apache/php_apache.c index 7931aa7279..0250a38397 100644 --- a/sapi/apache/php_apache.c +++ b/sapi/apache/php_apache.c @@ -319,6 +319,9 @@ PHP_FUNCTION(virtual) if (rr) destroy_sub_req (rr); RETURN_FALSE; } + + php_end_ob_buffering(1); + php_header(); if (run_sub_req(rr)) { php_error(E_WARNING, "Unable to include '%s' - request execution failed", (*filename)->value.str.val);