summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sapi/cgi/cgi_main.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index e4d0e52761..e8f277cfc3 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -1738,16 +1738,13 @@ 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);
#if PHP_FASTCGI
- if (!fastcgi)
-#endif
- {
- fclose(file_handle.handle.fp);
- php_end_ob_buffers(1 TSRMLS_CC);
+ if (fastcgi) {
+ goto fastcgi_request_done;
}
- }
-#if PHP_FASTCGI
- if (!fastcgi)
#endif
+ fclose(file_handle.handle.fp);
+ php_end_ob_buffers(1 TSRMLS_CC);
+ }
return SUCCESS;
}
break;