From 68aefb8b0150118af5c0d088093322b4a6b43beb Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 14 Jun 2011 06:07:20 +0000 Subject: [PATCH] Revert r89925, setting disable_functions in php.ini is definitely the wrong way to fix hash mismatches. --- includes/HistoryBlob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/HistoryBlob.php b/includes/HistoryBlob.php index 7535a0d0dc..f707b3f6a5 100644 --- a/includes/HistoryBlob.php +++ b/includes/HistoryBlob.php @@ -516,7 +516,7 @@ class DiffHistoryBlob implements HistoryBlob { $header = unpack( 'Vofp/Vcsize', substr( $diff, 0, 8 ) ); # Check the checksum if mhash is available - if ( function_exists( 'mhash' ) ) { + if ( extension_loaded( 'mhash' ) ) { $ofp = mhash( MHASH_ADLER32, $base ); if ( $ofp !== substr( $diff, 0, 4 ) ) { wfDebug( __METHOD__. ": incorrect base checksum\n" ); -- 2.20.1