]> granicus.if.org Git - php/commitdiff
Fix the fix for one line comments with <script..> </script> tags
authorfoobar <sniper@php.net>
Tue, 1 Mar 2005 02:17:41 +0000 (02:17 +0000)
committerfoobar <sniper@php.net>
Tue, 1 Mar 2005 02:17:41 +0000 (02:17 +0000)
Zend/zend_language_scanner.l

index f0b624a58d1aa622207343d854c62e96f3f29dd4..694ef1170483c02202f1ce4368c47967eb12c035 100644 (file)
@@ -1454,6 +1454,7 @@ NEWLINE ("\r"|"\n"|"\r\n")
        zendlval->value.str.val = yytext; /* no copying - intentional */
        zendlval->value.str.len = yyleng;
        zendlval->type = IS_STRING;
+       yyless(yyleng-9);
        BEGIN(ST_IN_SCRIPTING);
        return T_COMMENT;
 }