iliaa           Mon Feb  9 19:29:47 2004 EDT

  Modified files:              
    /php-src/sapi/cgi   cgi_main.c 
  Log:
  Fixed bug #26758 (FastCGI exits immediately with status 255).
  
  
http://cvs.php.net/diff.php/php-src/sapi/cgi/cgi_main.c?r1=1.245&r2=1.246&ty=u
Index: php-src/sapi/cgi/cgi_main.c
diff -u php-src/sapi/cgi/cgi_main.c:1.245 php-src/sapi/cgi/cgi_main.c:1.246
--- php-src/sapi/cgi/cgi_main.c:1.245   Mon Feb  9 19:02:38 2004
+++ php-src/sapi/cgi/cgi_main.c Mon Feb  9 19:29:46 2004
@@ -20,7 +20,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: cgi_main.c,v 1.245 2004/02/10 00:02:38 iliaa Exp $ */
+/* $Id: cgi_main.c,v 1.246 2004/02/10 00:29:46 iliaa Exp $ */
 
 #include "php.h"
 #include "php_globals.h"
@@ -271,7 +271,7 @@
 #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;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to