diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2000-06-05 21:19:21 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2000-06-05 21:19:21 +0000 |
commit | 78d77c1476fd2b47ddaef826b4ab5fbc02cf3156 (patch) | |
tree | 406c5ecd674e058cb2f1d3bdfb6fae796f11d389 /sapi/apache/php_apache.c | |
parent | ad730a374bb864c82b251e8caa8cfcc4d2bf5364 (diff) | |
download | php-git-78d77c1476fd2b47ddaef826b4ab5fbc02cf3156.tar.gz |
Fix virtual() when used with output buffering
@ Fix virtual() when used with output buffering (Marc Pohl)
Diffstat (limited to 'sapi/apache/php_apache.c')
-rw-r--r-- | sapi/apache/php_apache.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |