From: Edward Chernenko Date: Sun, 29 Nov 2015 15:46:24 +0000 (+0300) Subject: Fix "Undefined property: DiffEngine::$seq" under HHVM in DairikiDiff.php X-Git-Tag: 1.31.0-rc.0~8855 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=bd43acbca60b49ecb07aed37eecc8f59341f14e2;p=lhc%2Fweb%2Fwiklou.git Fix "Undefined property: DiffEngine::$seq" under HHVM in DairikiDiff.php Bug: T116266 Change-Id: I94ed1ce946b4c3e757405167d6c4530a5863a220 --- diff --git a/includes/diff/DairikiDiff.php b/includes/diff/DairikiDiff.php index 264c87fdfc..74019923d0 100644 --- a/includes/diff/DairikiDiff.php +++ b/includes/diff/DairikiDiff.php @@ -296,9 +296,9 @@ class DiffEngine { $this->xchanged = $this->ychanged = array(); $this->xv = $this->yv = array(); $this->xind = $this->yind = array(); - unset( $this->seq ); - unset( $this->in_seq ); - unset( $this->lcs ); + $this->seq = array(); + $this->in_seq = array(); + $this->lcs = 0; // Skip leading common lines. for ( $skip = 0; $skip < $n_from && $skip < $n_to; $skip++ ) {