]> granicus.if.org Git - php/commitdiff
Be strict on errors in modules startup
authorStanislav Malyshev <stas@php.net>
Sun, 2 Jul 2000 16:23:43 +0000 (16:23 +0000)
committerStanislav Malyshev <stas@php.net>
Sun, 2 Jul 2000 16:23:43 +0000 (16:23 +0000)
main/main.c

index d788be6b7923e23c5c0c96b6d9f8a3a991a47b10..aed9adf05d1472e847ed67e0d9042492f9a60084 100644 (file)
@@ -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;
        }