We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f11ba8 commit 9bdbee3Copy full SHA for 9bdbee3
main/output.c
@@ -368,6 +368,14 @@ static void php_ob_append(const char *text, uint text_length TSRMLS_DC)
368
memcpy(target, text, text_length);
369
target[text_length]=0;
370
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
+
379
if (OG(active_ob_buffer).chunk_size
380
&& OG(active_ob_buffer).text_length >= OG(active_ob_buffer).chunk_size) {
381
zval *output_handler = OG(active_ob_buffer).output_handler;
0 commit comments