1
0
mirror of https://github.com/php/php-src.git synced 2026-04-30 03:33:17 +02:00

- %> 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.
This commit is contained in:
Andi Gutmans
2000-12-17 20:10:16 +00:00
parent 5868427dcf
commit 6529b06618
+5 -5
View File
@@ -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];
}
}