]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #26758 (FastCGI exits immediately with status 255).
authorIlia Alshanetsky <iliaa@php.net>
Tue, 10 Feb 2004 00:30:03 +0000 (00:30 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 10 Feb 2004 00:30:03 +0000 (00:30 +0000)
NEWS
sapi/cgi/cgi_main.c

diff --git a/NEWS b/NEWS
index d2775055a0f9167ce42dafd5c643646fac42ed96..0880bc3aaffd82d19511d7aef7a08872e4079fae 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,8 @@ PHP 4                                                                      NEWS
 - Fixed bug #27135 (Possible crash inside mb_strlen()). (Moriyoshi)
 - Fixed bug #27026 (Added cgi.nph that allows forcing of the Status: 200
   header that is not normally needed). (Ilia)
+- Fixed bug #26758 (FastCGI exits immediately with status 255). (Ilia, 
+  tcarter at noggin dot com dot au)
 - Fixed bug #24773 (unseting of strings as arrays causes a crash). (Sara)
 
 03 Feb 2004, Version 4.3.5RC2
index 292ccfdf6db123bae4c835bd6cd1f0eea3db93c9..08619044f622dda43141265e24b4b3b1b99f0dc7 100644 (file)
@@ -275,7 +275,7 @@ static void sapi_cgibin_flush(void *server_context)
 #if PHP_FASTCGI
        if (!FCGX_IsCGI()) {
                FCGX_Request *request = (FCGX_Request *)server_context;
-               if(!request || FCGX_FFlush( request->out ) == -1 ) {
+               if (!parent && (!request || FCGX_FFlush(request->out) == -1)) {
                        php_handle_aborted_connection();
                }
                return;