sniper Wed Mar 19 03:22:12 2003 EDT Modified files: /php4/main main.c Log: Fixed bug #22775 (Fatal errors exit with status 0 with CGI/CLI) Index: php4/main/main.c diff -u php4/main/main.c:1.542 php4/main/main.c:1.543 --- php4/main/main.c:1.542 Tue Mar 18 17:21:54 2003 +++ php4/main/main.c Wed Mar 19 03:22:12 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: main.c,v 1.542 2003/03/18 22:21:54 helly Exp $ */ +/* $Id: main.c,v 1.543 2003/03/19 08:22:12 sniper Exp $ */ /* {{{ includes */ @@ -698,6 +698,7 @@ /*case E_PARSE: the parser would return 1 (failure), we can bail out nicely */ case E_COMPILE_ERROR: case E_USER_ERROR: + EG(exit_status) = 255; if (module_initialized) { zend_bailout(); efree(buffer);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php