Fix notices when generating expected tokens list (continued)

Forgot to add regenerated parser
This commit is contained in:
nikic 2013-07-27 18:50:08 +02:00
parent 09c106d11f
commit 01123ae6af
2 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,9 @@ Version 0.9.4-dev
* An interface for the node traversation has been added: `PHPParser_NodeTraverserInterface`
* Fix pretty printing of `include` expressions (precedence information was missing)
* Fix pretty printing of `include` expressions (precedence information was missing).
* Fix "undefined index" notices when generating the expected tokens for a syntax error.
Version 0.9.3 (22.11.2012)
--------------------------

View File

@ -1075,7 +1075,7 @@ class PHPParser_Parser
$n = $base + $i;
if ($n >= 0 && $n < self::YYLAST && self::$yycheck[$n] == $i
|| $state < self::YY2TBLSTATE
&& ($n = self::$yybase[$state + self::YYNLSTATES] + $i)
&& ($n = self::$yybase[$state + self::YYNLSTATES] + $i) >= 0
&& $n < self::YYLAST && self::$yycheck[$n] == $i
) {
if (self::$yyaction[$n] != self::YYUNEXPECTED) {