From: Tim Starling Date: Tue, 14 Jun 2011 06:07:20 +0000 (+0000) Subject: Revert r89925, setting disable_functions in php.ini is definitely the wrong way to... X-Git-Tag: 1.31.0-rc.0~29542 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=68aefb8b0150118af5c0d088093322b4a6b43beb;p=lhc%2Fweb%2Fwiklou.git Revert r89925, setting disable_functions in php.ini is definitely the wrong way to fix hash mismatches. --- 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" );