Only use FastStringSearch on PHP <5.5
authorOri Livneh <ori@wikimedia.org>
Thu, 3 Sep 2015 20:31:39 +0000 (13:31 -0700)
committerKrinkle <krinklemail@gmail.com>
Thu, 3 Sep 2015 22:53:15 +0000 (22:53 +0000)
commita37e25c3e50562b011857073f1bdf579dc739551
treef6eace03a08dbd0cf4de8769d8387328f6935016
parent281133e70c6a5a4993699f9688f727d0d2982183
Only use FastStringSearch on PHP <5.5

The native implementation of strtr( $str, $replace_pairs ) matches the
performance of FastStringSearch since http://bugs.php.net/63893 has been
resolved. HHVM's implementation does too, since PR facebook/hhvm#5471.

Change-Id: I20374d37bbb9958188a0487abc5b50f08ce40840
includes/libs/ReplacementArray.php