Skip to content

Commit

Permalink
If a require() dies, we must bail out (since it corrupts an existing …
Browse files Browse the repository at this point in the history
…op_array
  • Loading branch information
zsuraski committed May 14, 1999
1 parent 53f98a6 commit b9fb0b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Zend/configure.in
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ AC_INIT(zend.c)
AM_INIT_AUTOMAKE(zend, 0.80A) AM_INIT_AUTOMAKE(zend, 0.80A)
AM_CONFIG_HEADER(zend_config.h) AM_CONFIG_HEADER(zend_config.h)
AM_SANITY_CHECK AM_SANITY_CHECK
AM_MAINTAINER_MODE
ZEND_VERSION=$VERSION ZEND_VERSION=$VERSION


dnl We want this one before the checks, so the checks can modify CFLAGS. dnl We want this one before the checks, so the checks can modify CFLAGS.
Expand Down
2 changes: 1 addition & 1 deletion Zend/zend-scanner.l
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ int require_file(zend_file_handle *file_handle CLS_DC)
return FAILURE; return FAILURE;
} }
if (zendparse(CLS_C)==1) { if (zendparse(CLS_C)==1) {
CG(unclean_shutdown) = 1; zend_bailout();
} }
zend_close_file_handle(file_handle); zend_close_file_handle(file_handle);
restore_lexical_state(&original_lex_state CLS_CC); restore_lexical_state(&original_lex_state CLS_CC);
Expand Down

0 comments on commit b9fb0b8

Please sign in to comment.