diff options
Diffstat (limited to 'Zend/zend_highlight.c')
| -rw-r--r-- | Zend/zend_highlight.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Zend/zend_highlight.c b/Zend/zend_highlight.c index 49fe8e49a0..0df5b98c58 100644 --- a/Zend/zend_highlight.c +++ b/Zend/zend_highlight.c @@ -93,8 +93,7 @@ ZEND_API void zend_highlight(zend_syntax_highlighter_ini *syntax_highlighter_ini zend_printf("<code>"); zend_printf("<span style=\"color: %s\">\n", last_color); /* highlight stuff coming back from zendlex() */ - ZVAL_UNDEF(&token); - while ((token_type=lex_scan(&token))) { + while ((token_type=lex_scan(&token, NULL))) { switch (token_type) { case T_INLINE_HTML: next_color = syntax_highlighter_ini->highlight_html; @@ -180,8 +179,7 @@ ZEND_API void zend_strip(void) int token_type; int prev_space = 0; - ZVAL_UNDEF(&token); - while ((token_type=lex_scan(&token))) { + while ((token_type=lex_scan(&token, NULL))) { switch (token_type) { case T_WHITESPACE: if (!prev_space) { @@ -197,7 +195,7 @@ ZEND_API void zend_strip(void) case T_END_HEREDOC: zend_write((char*)LANG_SCNG(yy_text), LANG_SCNG(yy_leng)); /* read the following character, either newline or ; */ - if (lex_scan(&token) != T_WHITESPACE) { + if (lex_scan(&token, NULL) != T_WHITESPACE) { zend_write((char*)LANG_SCNG(yy_text), LANG_SCNG(yy_leng)); } zend_write("\n", sizeof("\n") - 1); |
