mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 13:30:25 +02:00
[ticket/16277] Adjust patch for the diff engine
PHPBB3-16277
This commit is contained in:
@@ -287,6 +287,7 @@ class diff_engine
|
||||
reset($matches);
|
||||
while ($y = current($matches))
|
||||
{
|
||||
next($matches);
|
||||
if (empty($this->in_seq[$y]))
|
||||
{
|
||||
$k = $this->_lcs_pos($y);
|
||||
@@ -298,6 +299,7 @@ class diff_engine
|
||||
// no reset() here
|
||||
while ($y = current($matches))
|
||||
{
|
||||
next($matches);
|
||||
if ($y > $this->seq[$k - 1])
|
||||
{
|
||||
// Optimization: this is a common case: next match is just replacing previous match.
|
||||
|
Reference in New Issue
Block a user