dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5663438
)
Fix "Undefined property: DiffEngine::$seq" under HHVM in DairikiDiff.php
author
Edward Chernenko
<edwardspec@gmail.com>
Sun, 29 Nov 2015 15:46:24 +0000
(18:46 +0300)
committer
Umherirrender
<umherirrender_de.wp@web.de>
Mon, 30 Nov 2015 17:55:06 +0000
(17:55 +0000)
Bug: T116266
Change-Id: I94ed1ce946b4c3e757405167d6c4530a5863a220
includes/diff/DairikiDiff.php
patch
|
blob
|
history
diff --git
a/includes/diff/DairikiDiff.php
b/includes/diff/DairikiDiff.php
index
264c87f
..
7401992
100644
(file)
--- 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++ ) {