diff options
author | Stanislav Malyshev <stas@php.net> | 2000-07-02 16:36:31 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2000-07-02 16:36:31 +0000 |
commit | 10342b4b9e2217681d16c6b96823131c5ff2b353 (patch) | |
tree | df3401b56624a20673da058942c9132cc3e9e087 | |
parent | 4d1f03839c69eef3e6359b874496ac24181cd190 (diff) | |
download | php-git-10342b4b9e2217681d16c6b96823131c5ff2b353.tar.gz |
react only on CORE_ERROR
-rw-r--r-- | main/main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/main/main.c b/main/main.c index aed9adf05d..2cc9dcfac8 100644 --- a/main/main.c +++ b/main/main.c @@ -417,17 +417,19 @@ static void php_error_cb(int type, const char *error_filename, const uint error_ } switch (type) { - case E_ERROR: case E_CORE_ERROR: + if(!module_initialized) { + /* bad error in module startup - no way we can live with this */ + exit(-2); + } + /* no break - intentionally */ + case E_ERROR: /*case E_PARSE: the parser would return 1 (failure), we can bail out nicely */ case E_COMPILE_ERROR: case E_USER_ERROR: if (module_initialized) { zend_bailout(); return; - } else { - /* bad error in module startup - no way we can live with this */ - exit(-2); } break; } |