summaryrefslogtreecommitdiff
path: root/main/output.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-03-17 03:03:50 +0000
committerZeev Suraski <zeev@php.net>2001-03-17 03:03:50 +0000
commit34b2fc4a6c5e0acbe14baf58920f78c7b2912774 (patch)
treeae376dd890c60518d61e60bd77c4d9713d8d7691 /main/output.c
parentb89dc4b4d85900e27d0b690569c337358ae0eb88 (diff)
downloadphp-git-34b2fc4a6c5e0acbe14baf58920f78c7b2912774.tar.gz
Fix the output buffering bug Andre found
Diffstat (limited to 'main/output.c')
-rw-r--r--main/output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/output.c b/main/output.c
index 7c25b73603..3180c912a7 100644
--- a/main/output.c
+++ b/main/output.c
@@ -157,6 +157,7 @@ PHPAPI void php_end_ob_buffer(zend_bool send_buffer, zend_bool just_flush)
orig_buffer->value.str.len = OG(active_ob_buffer).text_length;
orig_buffer->type = IS_STRING;
orig_buffer->refcount=2; /* don't let call_user_function() destroy our buffer */
+ orig_buffer->is_ref=1;
ALLOC_INIT_ZVAL(z_status);
Z_TYPE_P(z_status) = IS_LONG;