summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-03-17 03:05:07 +0000
committerZeev Suraski <zeev@php.net>2001-03-17 03:05:07 +0000
commit1ab8f39f47ab54245d2eedb738f8cb9debb9f34c (patch)
treee03caae487ac3fc5fca717b81365f28dfcee957a
parent6a6318d4bef75950b91e6ca4b6de681019d860af (diff)
downloadphp-git-1ab8f39f47ab54245d2eedb738f8cb9debb9f34c.tar.gz
MFH
-rw-r--r--ext/standard/output.c1
-rw-r--r--main/output.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/output.c b/ext/standard/output.c
index 7c25b73603..3180c912a7 100644
--- a/ext/standard/output.c
+++ b/ext/standard/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;
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;