From 8e46f4b273b15dd4c663ac7324b76ea74f1e7d91 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 10 Feb 2004 00:30:03 +0000 Subject: [PATCH] MFH: Fixed bug #26758 (FastCGI exits immediately with status 255). --- NEWS | 2 ++ sapi/cgi/cgi_main.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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; -- 2.50.1