Skip to content

Commit 9bdbee3

Browse files
author
Yasuo Ohgaki
committed
FMH. Implicit flush.
1 parent 7f11ba8 commit 9bdbee3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

main/output.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,14 @@ static void php_ob_append(const char *text, uint text_length TSRMLS_DC)
368368
memcpy(target, text, text_length);
369369
target[text_length]=0;
370370

371+
/* If implicit_flush is On, send contents to next buffer and return.
372+
Both PG() and OG() should be used since we should flush implicitly
373+
always when implicit_flush is enabled in php.ini */
374+
if (PG(implicit_flush) || OG(implicit_flush)) {
375+
php_end_ob_buffer(1, 1 TSRMLS_CC);
376+
return;
377+
}
378+
371379
if (OG(active_ob_buffer).chunk_size
372380
&& OG(active_ob_buffer).text_length >= OG(active_ob_buffer).chunk_size) {
373381
zval *output_handler = OG(active_ob_buffer).output_handler;

0 commit comments

Comments
 (0)