From 2fe7267d53b41529efc150d6f95ca7300965f649 Mon Sep 17 00:00:00 2001 From: foobar Date: Sun, 15 Apr 2007 23:06:08 +0000 Subject: [PATCH] MFH: Simplify previous patch. --- sapi/cgi/cgi_main.c | 13 +++++-------- 1 file 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; -- 2.50.1