From 473d1d7cf13f7cd76a2d515fbde62694c2f504fd Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Tue, 11 May 1999 17:50:37 +0000 Subject: * Fix a bug that occured in case of parse errors. We need to restore the lexical state even if the compilation failed. --- Zend/zend_highlight.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Zend/zend_highlight.c') 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; -- cgit v1.2.1