From: foobar Date: Wed, 19 Mar 2003 08:22:12 +0000 (+0000) Subject: Fixed bug #22775 (Fatal errors exit with status 0 with CGI/CLI) X-Git-Tag: RELEASE_0_5~413 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88fe9c2d3cd10e618ac3f2e528a8b965af1dd190;p=php Fixed bug #22775 (Fatal errors exit with status 0 with CGI/CLI) --- diff --git a/main/main.c b/main/main.c index 1c5a48acb4..93c03703b6 100644 --- a/main/main.c +++ b/main/main.c @@ -698,6 +698,7 @@ static void php_error_cb(int type, const char *error_filename, const uint error_ /*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);