}
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;
}