cvs: ZendEngine2(PHP_5_1) / zend_language_scanner.l /tests bug36513.phpt php-src NEWS

From: Date: Thu, 13 Apr 2006 13:48:28 +0000
Subject: cvs: ZendEngine2(PHP_5_1) / zend_language_scanner.l /tests bug36513.phpt php-src NEWS
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4811@lists.php.net to get a copy of this message
dmitry Thu Apr 13 13:48:28 2006 UTC Added files: (Branch: PHP_5_1) /ZendEngine2/tests bug36513.phpt Modified files: /php-src NEWS /ZendEngine2 zend_language_scanner.l Log: Fixed bug #36513 (comment will be outputed in last line) http://cvs.php.net/viewcvs.cgi/php-src/NEWS?r1=1.2027.2.513&r2=1.2027.2.514&diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.513 php-src/NEWS:1.2027.2.514 --- php-src/NEWS:1.2027.2.513 Thu Apr 13 11:26:10 2006 +++ php-src/NEWS Thu Apr 13 13:48:27 2006 @@ -16,6 +16,7 @@ - Fixed bug #37046 (foreach breaks static scope). (Dmitry) - Fixed bug #37002 (Have to quote literals in INI when concatenating with vars). (Dmitry) +- Fixed bug #36513 (comment will be outputed in last line). (Dmitry) 06 Apr 2006, PHP 5.1.3RC3 - Eliminated run-time constant fetching for TRUE, FALSE and NULL. (Dmitry) http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_language_scanner.l?r1=1.131.2.10&r2=1.131.2.11&diff_format=u Index: ZendEngine2/zend_language_scanner.l diff -u ZendEngine2/zend_language_scanner.l:1.131.2.10 ZendEngine2/zend_language_scanner.l:1.131.2.11 --- ZendEngine2/zend_language_scanner.l:1.131.2.10 Tue Jan 17 09:39:57 2006 +++ ZendEngine2/zend_language_scanner.l Thu Apr 13 13:48:28 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_language_scanner.l,v 1.131.2.10 2006/01/17 09:39:57 dmitry Exp $ */ +/* $Id: zend_language_scanner.l,v 1.131.2.11 2006/04/13 13:48:28 dmitry Exp $ */ #define yyleng SCNG(yy_leng) #define yytext SCNG(yy_text) @@ -1461,7 +1461,7 @@ yymore(); } -<ST_ONE_LINE_COMMENT>[^\n\r?%>]+{ANY_CHAR} { +<ST_ONE_LINE_COMMENT>[^\n\r?%>]*{ANY_CHAR} { switch (yytext[yyleng-1]) { case '?': case '%': case '>': yyless(yyleng-1); @@ -1491,7 +1491,7 @@ <ST_ONE_LINE_COMMENT>"?>"|"%>" { if (CG(asp_tags) || yytext[yyleng-2] != '%') { /* asp comment? */ zendlval->value.str.val = yytext; /* no copying - intentional */ - zendlval->value.str.len = yyleng; + zendlval->value.str.len = yyleng-2; zendlval->type = IS_STRING; yyless(yyleng-2); BEGIN(ST_IN_SCRIPTING); http://cvs.php.net/viewcvs.cgi/ZendEngine2/tests/bug36513.phpt?view=markup&rev=1.1 Index: ZendEngine2/tests/bug36513.phpt +++ ZendEngine2/tests/bug36513.phpt

« previous php.zend-engine.cvs (#4811) next »