Page MenuHomePhabricator

D20941.diff
No OneTemporary

D20941.diff

diff --git a/externals/porter-stemmer/src/Porter.php b/externals/porter-stemmer/src/Porter.php
--- a/externals/porter-stemmer/src/Porter.php
+++ b/externals/porter-stemmer/src/Porter.php
@@ -402,7 +402,7 @@
{
$c = self::$regex_consonant;
- return preg_match("#$c{2}$#", $str, $matches) AND $matches[0]{0} == $matches[0]{1};
+ return preg_match("#$c{2}$#", $str, $matches) AND $matches[0][0] == $matches[0][1];
}
/**
@@ -419,8 +419,8 @@
return preg_match("#($c$v$c)$#", $str, $matches)
AND strlen($matches[1]) == 3
- AND $matches[1]{2} != 'w'
- AND $matches[1]{2} != 'x'
- AND $matches[1]{2} != 'y';
+ AND $matches[1][2] != 'w'
+ AND $matches[1][2] != 'x'
+ AND $matches[1][2] != 'y';
}
}

File Metadata

Mime Type
text/plain
Expires
Sat, May 18, 8:02 AM (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6264923
Default Alt Text
D20941.diff (852 B)

Event Timeline