From 78d77c1476fd2b47ddaef826b4ab5fbc02cf3156 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Mon, 5 Jun 2000 21:19:21 +0000 Subject: Fix virtual() when used with output buffering @ Fix virtual() when used with output buffering (Marc Pohl) --- sapi/apache/php_apache.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sapi/apache/php_apache.c') 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); -- cgit v1.2.1