? khext.patch Index: sapi/cgi/cgi_main.c =================================================================== RCS file: /repository/php-src/sapi/cgi/cgi_main.c,v retrieving revision 1.271 diff -u -r1.271 cgi_main.c --- sapi/cgi/cgi_main.c 3 Dec 2005 01:27:37 -0000 1.271 +++ sapi/cgi/cgi_main.c 6 Dec 2005 21:58:18 -0000 @@ -264,13 +264,15 @@ static void sapi_cgibin_flush(void *server_context) { - if (!FCGX_IsCGI()) { + int flush_result; + if (!FCGX_IsCGI()) { FCGX_Request *request = (FCGX_Request *) server_context; - if ( + flush_result = FCGX_FFlush(request->out); + if ( #ifndef PHP_WIN32 !parent && #endif - (!request || FCGX_FFlush(request->out) == -1)) { + (!request || flush_result == -1)) { php_handle_aborted_connection(); } return;