Permalink
Browse files

Correction to previous fix for bug 19755 - going back over previous t…

…okens can lead to different misassignment of closing tokens
  • Loading branch information...
1 parent 42a568d commit 6f77d5a5bf0669eb302073d86da91abec7e0ae23 @gsherwood gsherwood committed Jan 15, 2013
View
@@ -1497,7 +1497,7 @@ private static function _recurseScopeMap(
echo "=> Found semicolon before scope opener for $stackPtr (T_IF), bailing".PHP_EOL;
}
- return $stackPtr;
+ return $i;
}
// Is this an opening condition ?
@@ -200,6 +200,15 @@ function test(){
return 1;
}
+switch ($foo) {
+ case 'foo':
+ if ($foo)
+ return $foo;
+ return $bar;
+ default:
+ return $bar;
+}
+
exit();
@@ -81,11 +81,11 @@ public function getWarningList()
152 => 1,
165 => 1,
179 => 1,
- 207 => 1,
- 208 => 1,
- 209 => 1,
- 210 => 2,
- 214 => 1,
+ 216 => 1,
+ 217 => 1,
+ 218 => 1,
+ 219 => 2,
+ 223 => 1,
);
}//end getWarningList()

0 comments on commit 6f77d5a

Please sign in to comment.