Deprecate wfDiff()
authorMax Semenik <maxsem.wiki@gmail.com>
Mon, 23 Mar 2015 18:51:39 +0000 (11:51 -0700)
committerKunal Mehta <legoktm@gmail.com>
Thu, 26 Mar 2015 04:19:32 +0000 (21:19 -0700)
commit4b283918204bed0d4a572c54542ef78c4fa838e6
tree98cb6e1526b668ea3597a7364a7e25ab44891cc0
parent782e81b31c0b04f8753812ccfc56d0a7187948ec
Deprecate wfDiff()

This function is backwards:
* The stated purpose is to generate a list of differences for callers to parse,
  however we already have DiffEngine that returns a list of differences that you
  don't need to parse manually shooting your feet off in process.
* With improvements in PHP performance in the last 10 years, shelling out instead of using
  a pure-PHP diff has a doubtful performance benefit.
* Even in configurations where it's faster on predominant diffs (which have to be huge),
  shelling out has its own security implications.

This function is not used in core. The only extensons using it are Echo (which just parses
its output so would be better off with DiffEngine) and AbuseFilter, let's not add more users
by tolerating this function.

Also, add error checking while I'm at it.

Change-Id: Ia67debce39de8252312fd887ebfbe6fb89f9edc9
RELEASE-NOTES-1.25
includes/GlobalFunctions.php