]> granicus.if.org Git - php/commitdiff
Fix virtual() when used with output buffering
authorRasmus Lerdorf <rasmus@php.net>
Mon, 5 Jun 2000 21:19:21 +0000 (21:19 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Mon, 5 Jun 2000 21:19:21 +0000 (21:19 +0000)
@ Fix virtual() when used with output buffering (Marc Pohl)

sapi/apache/php_apache.c

index 7931aa72790a4b6bf85878f7b15bef13e18a0358..0250a383973144680922739081794bec3c9735f2 100644 (file)
@@ -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);