]> granicus.if.org Git - php/commitdiff
MFH: Don't forget to flush() buffers for -w -s
authorIlia Alshanetsky <iliaa@php.net>
Wed, 13 Aug 2003 02:01:59 +0000 (02:01 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 13 Aug 2003 02:01:59 +0000 (02:01 +0000)
sapi/cgi/cgi_main.c

index f0111dbaa9fa60b594349095ca466ebcc41e5d81..8698312323a5dee3950326e2a713acce4be2e369 100644 (file)
@@ -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;
                                }