summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}