summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/output.c b/main/output.c
index e78b9e2d5a..df325a9cd4 100644
--- a/main/output.c
+++ b/main/output.c
@@ -200,7 +200,8 @@ PHPAPI void php_end_ob_buffer(zend_bool send_buffer, zend_bool just_flush TSRMLS
to_be_destroyed_buffer = OG(active_ob_buffer).buffer;
if (OG(active_ob_buffer).internal_output_handler
- && (final_buffer != OG(active_ob_buffer).internal_output_handler_buffer)) {
+ && (final_buffer != OG(active_ob_buffer).internal_output_handler_buffer)
+ && (final_buffer != OG(active_ob_buffer).buffer)) {
to_be_destroyed_handled_output[0] = final_buffer;
}