diff options
author | Andi Gutmans <andi@php.net> | 2000-12-17 20:10:16 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-12-17 20:10:16 +0000 |
commit | 6529b066187f0e37ca8f4a25c501d49b9a739947 (patch) | |
tree | bb3092cc09dfe962ab446c2bd9088bbefae88394 /Zend/zend_language_scanner.l | |
parent | 5868427dcf81fe3ce96803c073ddb7a9d5d98b44 (diff) | |
download | php-git-6529b066187f0e37ca8f4a25c501d49b9a739947.tar.gz |
- %> without asp_tags should not be treated as inline_html but as regular
tokens. Of course the parser will die with a parse error which is the
correct behavior.
Diffstat (limited to 'Zend/zend_language_scanner.l')
-rw-r--r-- | Zend/zend_language_scanner.l | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l index 5711b3db41..497cc14e21 100644 --- a/Zend/zend_language_scanner.l +++ b/Zend/zend_language_scanner.l @@ -1238,16 +1238,16 @@ ANY_CHAR (.|[\n]) <ST_IN_SCRIPTING>"%>"([\n]|"\r\n")? { - zendlval->value.str.len = yyleng; - zendlval->type = IS_STRING; - HANDLE_NEWLINES(yytext,yyleng); if (CG(asp_tags)) { BEGIN(INITIAL); + zendlval->value.str.len = yyleng; + zendlval->type = IS_STRING; zendlval->value.str.val = yytext; /* no copying - intentional */ + HANDLE_NEWLINES(yytext,yyleng); return T_CLOSE_TAG; /* implicit ';' at php-end tag */ } else { - zendlval->value.str.val = (char *) estrndup(yytext, yyleng); - return T_INLINE_HTML; + yyless(1); + return yytext[0]; } } |