http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89927
Revision: 89927
Author: ariel
Date: 2011-06-12 12:29:30 +0000 (Sun, 12 Jun 2011)
Log Message:
-----------
mft r89925 so we can disable mhash in php.ini instead of at build time
Modified Paths:
--------------
branches/wmf/1.17wmf1/includes/HistoryBlob.php
Modified: branches/wmf/1.17wmf1/includes/HistoryBlob.php
===================================================================
--- branches/wmf/1.17wmf1/includes/HistoryBlob.php 2011-06-12 12:05:27 UTC
(rev 89926)
+++ branches/wmf/1.17wmf1/includes/HistoryBlob.php 2011-06-12 12:29:30 UTC
(rev 89927)
@@ -453,7 +453,7 @@
$header = unpack( 'Vofp/Vcsize', substr( $diff, 0, 8 ) );
# Check the checksum if mhash is available
- if ( extension_loaded( 'mhash' ) ) {
+ if ( function_exists( 'mhash' ) ) {
$ofp = mhash( MHASH_ADLER32, $base );
if ( $ofp !== substr( $diff, 0, 4 ) ) {
wfDebug( __METHOD__. ": incorrect base
checksum\n" );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs