summaryrefslogtreecommitdiff
path: root/Zend/zend_highlight.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-05-11 17:50:37 +0000
committerZeev Suraski <zeev@php.net>1999-05-11 17:50:37 +0000
commit473d1d7cf13f7cd76a2d515fbde62694c2f504fd (patch)
treea0cdd2fa352077aea0ef8ab58c3d32ebe371a094 /Zend/zend_highlight.c
parentba88c0c47c1dcbf20a920ccef0e45c7d1d277905 (diff)
downloadphp-git-473d1d7cf13f7cd76a2d515fbde62694c2f504fd.tar.gz
* Fix a bug that occured in case of parse errors. We need to restore the lexical state
even if the compilation failed.
Diffstat (limited to 'Zend/zend_highlight.c')
-rw-r--r--Zend/zend_highlight.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Zend/zend_highlight.c b/Zend/zend_highlight.c
index 0fc0b8cbcd..e80fac449b 100644
--- a/Zend/zend_highlight.c
+++ b/Zend/zend_highlight.c
@@ -138,13 +138,13 @@ ZEND_API void zend_highlight(zend_syntax_highlighter_ini *syntax_highlighter_ini
if (token.type == IS_STRING) {
switch (token_type) {
- case T_OPEN_TAG:
- case T_CLOSE_TAG:
- case T_WHITESPACE:
- break;
- default:
- efree(token.value.str.val);
- break;
+ case T_OPEN_TAG:
+ case T_CLOSE_TAG:
+ case T_WHITESPACE:
+ break;
+ default:
+ efree(token.value.str.val);
+ break;
}
}
token.type = 0;