From: Ilia Alshanetsky Date: Tue, 10 Feb 2004 00:30:03 +0000 (+0000) Subject: MFH: Fixed bug #26758 (FastCGI exits immediately with status 255). X-Git-Tag: php-4.3.5RC3~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e46f4b273b15dd4c663ac7324b76ea74f1e7d91;p=php MFH: Fixed bug #26758 (FastCGI exits immediately with status 255). --- diff --git a/NEWS b/NEWS index d2775055a0..0880bc3aaf 100644 --- 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 diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 292ccfdf6d..08619044f6 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -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;