From: Dmitry Stogov Date: Wed, 24 May 2006 09:41:55 +0000 (+0000) Subject: Fixed bug #37256 (php-fastcgi dosen't handle connection abort) X-Git-Tag: BEFORE_NEW_OUTPUT_API~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94004da0ed4a0a1af53b329271d862be81518bc4;p=php Fixed bug #37256 (php-fastcgi dosen't handle connection abort) --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 71deaf07eb..41b35818c1 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -273,7 +273,7 @@ static void sapi_cgibin_flush(void *server_context) #ifndef PHP_WIN32 !parent && #endif - request && fcgi_flush(request, 0) == -1) { + request && !fcgi_flush(request, 0)) { php_handle_aborted_connection(); } return;