dmitry Thu Jun 21 08:40:43 2007 UTC Modified files: (Branch: PHP_5_2) /php-src/sapi/cgi cgi_main.c Log: no need to return exit status of the last fastcgi request http://cvs.php.net/viewvc.cgi/php-src/sapi/cgi/cgi_main.c?r1=1.267.2.15.2.41&r2=1.267.2.15.2.42&diff_format=u Index: php-src/sapi/cgi/cgi_main.c diff -u php-src/sapi/cgi/cgi_main.c:1.267.2.15.2.41 php-src/sapi/cgi/cgi_main.c:1.267.2.15.2.42 --- php-src/sapi/cgi/cgi_main.c:1.267.2.15.2.41 Mon Jun 4 15:38:12 2007 +++ php-src/sapi/cgi/cgi_main.c Thu Jun 21 08:40:43 2007 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: cgi_main.c,v 1.267.2.15.2.41 2007/06/04 15:38:12 tony2001 Exp $ */ +/* $Id: cgi_main.c,v 1.267.2.15.2.42 2007/06/21 08:40:43 dmitry Exp $ */ #include "php.h" #include "php_globals.h" @@ -1834,6 +1834,10 @@ if (bindpath) { free(bindpath); } + if (max_requests != 1) { + /* no need to return exit_status of the last request */ + exit_status = 0; + } break; } /* end of fastcgi loop */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php