diff options
| author | Zeev Suraski <zeev@php.net> | 1999-05-11 17:50:37 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 1999-05-11 17:50:37 +0000 |
| commit | 473d1d7cf13f7cd76a2d515fbde62694c2f504fd (patch) | |
| tree | a0cdd2fa352077aea0ef8ab58c3d32ebe371a094 /Zend/zend_highlight.c | |
| parent | ba88c0c47c1dcbf20a920ccef0e45c7d1d277905 (diff) | |
| download | php-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.c | 14 |
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; |
