From: Ilia Alshanetsky Date: Wed, 13 Aug 2003 02:01:59 +0000 (+0000) Subject: MFH: Don't forget to flush() buffers for -w -s X-Git-Tag: php-4.3.3RC4~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd3cb846c0577663301062080e6c543bb1c1ed8c;p=php MFH: Don't forget to flush() buffers for -w -s --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index f0111dbaa9..8698312323 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -1555,6 +1555,7 @@ consult the installation file that came with this distribution, or visit \n\ if (open_file_for_scanning(&file_handle TSRMLS_CC) == SUCCESS) { zend_strip(TSRMLS_C); fclose(file_handle.handle.fp); + php_end_ob_buffers(1 TSRMLS_CC); } return SUCCESS; break; @@ -1566,6 +1567,7 @@ consult the installation file that came with this distribution, or visit \n\ php_get_highlight_struct(&syntax_highlighter_ini); zend_highlight(&syntax_highlighter_ini TSRMLS_CC); fclose(file_handle.handle.fp); + php_end_ob_buffers(1 TSRMLS_CC); } return SUCCESS; }