From: Dmitry Stogov Date: Wed, 24 May 2006 09:42:21 +0000 (+0000) Subject: Fixed bug #37256 (php-fastcgi dosen't handle connection abort) X-Git-Tag: php-5.2.0RC1~477 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6fe36adf0cf2d20649ffc9fa1e91d75eca492169;p=php Fixed bug #37256 (php-fastcgi dosen't handle connection abort) --- diff --git a/NEWS b/NEWS index 722f3beda2..da3c1ab6f8 100644 --- a/NEWS +++ b/NEWS @@ -72,6 +72,7 @@ PHP NEWS - Fixed bug #37313 (sigemptyset() used without including ). (jdolecek) - Fixed bug #37306 (max_execution_time = max_input_time). (Dmitry) +- Fixed bug #37256 (php-fastcgi dosen't handle connection abort). (Dmitry) - Fixed bug #37244 (Added strict flag to base64_decode() that enforces RFC3548 compliance). (Ilia) - Fixed bug #36630 (umask not reset at the end of the request). (Ilia) diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 1c13747214..eb8f50f240 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -282,7 +282,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;