summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/output.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/output.c b/main/output.c
index a644ba75df..47f63edf00 100644
--- a/main/output.c
+++ b/main/output.c
@@ -591,9 +591,9 @@ static inline void php_ob_append(const char *text, uint text_length TSRMLS_DC)
memcpy(target, text, text_length);
target[text_length]=0;
- /* If implicit_flush is On, send contents to next buffer and return. */
- if (OG(implicit_flush) || OG(active_ob_buffer).chunk_size
- && OG(active_ob_buffer).text_length >= OG(active_ob_buffer).chunk_size)
+ /* If implicit_flush is On or chunked buffering, send contents to next buffer and return. */
+ if (OG(implicit_flush) || (OG(active_ob_buffer).chunk_size
+ && OG(active_ob_buffer).text_length >= OG(active_ob_buffer).chunk_size))
{
zval *output_handler = OG(active_ob_buffer).output_handler;