From: Zeev Suraski Date: Sat, 17 Mar 2001 03:03:50 +0000 (+0000) Subject: Fix the output buffering bug Andre found X-Git-Tag: php-4.0.6RC1~666 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34b2fc4a6c5e0acbe14baf58920f78c7b2912774;p=php Fix the output buffering bug Andre found --- 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;