mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Make zend return a proper exit error code when it encounters a parse error.
This commit is contained in:
parent
9f85d17f81
commit
1074fca0ae
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user