If a require() dies, we must bail out (since it corrupts an existing op_array

This commit is contained in:
Zeev Suraski 1999-05-14 20:16:22 +00:00
parent 53f98a66cf
commit b9fb0b8e4d
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ AC_INIT(zend.c)
AM_INIT_AUTOMAKE(zend, 0.80A)
AM_CONFIG_HEADER(zend_config.h)
AM_SANITY_CHECK
AM_MAINTAINER_MODE
ZEND_VERSION=$VERSION
dnl We want this one before the checks, so the checks can modify CFLAGS.

View File

@ -411,7 +411,7 @@ int require_file(zend_file_handle *file_handle CLS_DC)
return FAILURE;
}
if (zendparse(CLS_C)==1) {
CG(unclean_shutdown) = 1;
zend_bailout();
}
zend_close_file_handle(file_handle);
restore_lexical_state(&original_lex_state CLS_CC);