Revert r89925, setting disable_functions in php.ini is definitely the wrong way to...
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 14 Jun 2011 06:07:20 +0000 (06:07 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 14 Jun 2011 06:07:20 +0000 (06:07 +0000)
includes/HistoryBlob.php

index 7535a0d..f707b3f 100644 (file)
@@ -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" );