summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2000-07-02 16:23:43 +0000
committerStanislav Malyshev <stas@php.net>2000-07-02 16:23:43 +0000
commitd3afeb5b4e8ad395e37e74116bad6810d3935f44 (patch)
tree880bcc6823a49feecc7b21a2bcf08a424190e753
parent4f88e66167a9782aeb4e22eb98159fd33666306a (diff)
downloadphp-git-d3afeb5b4e8ad395e37e74116bad6810d3935f44.tar.gz
Be strict on errors in modules startup
-rw-r--r--main/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c
index d788be6b79..aed9adf05d 100644
--- a/main/main.c
+++ b/main/main.c
@@ -425,6 +425,9 @@ static void php_error_cb(int type, const char *error_filename, const uint error_
if (module_initialized) {
zend_bailout();
return;
+ } else {
+ /* bad error in module startup - no way we can live with this */
+ exit(-2);
}
break;
}