phpBB

Code Changes

File: includes/diff/engine.php

  Unmodified   Added   Modified   Removed
Line 84Line 84
			$to_lines = explode("\n", preg_replace('#[\n\r]+#', "\n", $to_lines));
}


			$to_lines = explode("\n", preg_replace('#[\n\r]+#', "\n", $to_lines));
}


		$n_from = sizeof($from_lines);
$n_to = sizeof($to_lines);

		$n_from = count($from_lines);
$n_to = count($to_lines);


$this->xchanged = $this->ychanged = $this->xv = $this->yv = $this->xind = $this->yind = array();
unset($this->seq, $this->in_seq, $this->lcs);


$this->xchanged = $this->ychanged = $this->xv = $this->yv = $this->xind = $this->yind = array();
unset($this->seq, $this->in_seq, $this->lcs);

Line 145Line 145
		}

// Find the LCS.

		}

// Find the LCS.

		$this->_compareseq(0, sizeof($this->xv), 0, sizeof($this->yv));

		$this->_compareseq(0, count($this->xv), 0, count($this->yv));


// Merge edits when possible.
if ($this->skip_whitespace_changes)


// Merge edits when possible.
if ($this->skip_whitespace_changes)

Line 444Line 444
		$i = 0;
$j = 0;


		$i = 0;
$j = 0;


		$len = sizeof($lines);
$other_len = sizeof($other_changed);

		$len = count($lines);
$other_len = count($other_changed);


while (1)
{


while (1)
{