DiffHistoryBlob: don't check for mhash extension
authorKevin Israel <pleasestand@live.com>
Tue, 30 Jul 2013 15:44:03 +0000 (11:44 -0400)
committerKevin Israel <pleasestand@live.com>
Tue, 30 Jul 2013 15:44:03 +0000 (11:44 -0400)
commit7751b289e4aa71af4e3e952faf5fe64899cb7a8c
treeaccb018b098872004da61217bac993693943ec78
parent3f9cdde8847632867772c0fe4ea71456cfd570ab
DiffHistoryBlob: don't check for mhash extension

Checking for the mhash extension is pointless in PHP 5.3+ because
it only exists as B/C functions that are part of the hash extension.

From ext/hash/config.m4:

    if test "$PHP_MHASH" != "no"; then
      if test "$PHP_HASH" = "no"; then
        PHP_HASH="yes"
      fi

      AC_DEFINE(PHP_MHASH_BC, 1, [ ])
    fi

So if mhash() is compiled in, hash() must also be compiled in.

Change-Id: Ic376f4c438aaf701ebb4f1394ab6e4c1803fb8b8
includes/HistoryBlob.php
tests/phpunit/includes/DiffHistoryBlobTest.php