]> granicus.if.org Git - php/commitdiff
Fixed bug #37256 (php-fastcgi dosen't handle connection abort)
authorDmitry Stogov <dmitry@php.net>
Wed, 24 May 2006 09:42:21 +0000 (09:42 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 24 May 2006 09:42:21 +0000 (09:42 +0000)
NEWS
sapi/cgi/cgi_main.c

diff --git a/NEWS b/NEWS
index 722f3beda2aacd8d5efb7602915799a5bf7dd897..da3c1ab6f835a7958cdfb9cadc89b59c1ba879b0 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -72,6 +72,7 @@ PHP                                                                        NEWS
 - Fixed bug #37313 (sigemptyset() used without including <signal.h>).
   (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)
index 1c137472146ed8069bca640127f816f855677d2d..eb8f50f24099a4132619cb6b81b9fcc76691d26a 100644 (file)
@@ -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;