Make zend return a proper exit error code when it encounters a parse error.

This commit is contained in:
Ilia Alshanetsky 2002-09-15 23:34:03 +00:00
parent 9f85d17f81
commit 1074fca0ae

View File

@ -781,6 +781,7 @@ ZEND_API void zend_error(int type, const char *format, ...)
va_end(args);
if (type==E_PARSE) {
EG(exit_status) = 255;
zend_init_compiler_data_structures(TSRMLS_C);
}
}