diff options
author | Zeev Suraski <zeev@php.net> | 2004-02-03 14:32:02 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2004-02-03 14:32:02 +0000 |
commit | 60bb89c5057df8a9d4c4972064195cd2950c5040 (patch) | |
tree | d77f1cf17098dc2ba32125b168e9929b5f34bb42 /Zend/zend_language_scanner.l | |
parent | e1bf9cc4c2320a6bbd11eb7d15c84f05112d39f0 (diff) | |
download | php-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.l | 3 |
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; |