summaryrefslogtreecommitdiff
path: root/Zend/zend_language_scanner.l
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2004-02-03 14:32:02 +0000
committerZeev Suraski <zeev@php.net>2004-02-03 14:32:02 +0000
commit60bb89c5057df8a9d4c4972064195cd2950c5040 (patch)
treed77f1cf17098dc2ba32125b168e9929b5f34bb42 /Zend/zend_language_scanner.l
parente1bf9cc4c2320a6bbd11eb7d15c84f05112d39f0 (diff)
downloadphp-git-60bb89c5057df8a9d4c4972064195cd2950c5040.tar.gz
Abort on parse error in an include file (patch by Ilia)
Diffstat (limited to 'Zend/zend_language_scanner.l')
-rw-r--r--Zend/zend_language_scanner.l3
1 files changed, 1 insertions, 2 deletions
diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l
index eff969e499..fe6b17d9f9 100644
--- a/Zend/zend_language_scanner.l
+++ b/Zend/zend_language_scanner.l
@@ -368,8 +368,7 @@ ZEND_API zend_op_array *compile_file(zend_file_handle *file_handle, int type TSR
zend_do_handle_exception(TSRMLS_C);
CG(in_compilation) = original_in_compilation;
if (compiler_result==1) { /* parser error */
- CG(unclean_shutdown) = 1;
- retval = NULL;
+ zend_bailout();
}
compilation_successful=1;