Permalink
Browse files

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

…op_array
  • Loading branch information...
1 parent 53f98a6 commit b9fb0b8e4d797ef81430ead4cb6b2afd0031e54b @zsuraski zsuraski committed May 14, 1999
Showing with 2 additions and 1 deletion.
  1. +1 −0 Zend/configure.in
  2. +1 −1 Zend/zend-scanner.l
View
@@ -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
@@ -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);

0 comments on commit b9fb0b8

Please sign in to comment.