http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90035
Revision: 90035
Author: tstarling
Date: 2011-06-14 06:07:20 +0000 (Tue, 14 Jun 2011)
Log Message:
-----------
Revert r89925, setting disable_functions in php.ini is definitely the wrong way
to fix hash mismatches.
Modified Paths:
--------------
trunk/phase3/includes/HistoryBlob.php
Modified: trunk/phase3/includes/HistoryBlob.php
===================================================================
--- trunk/phase3/includes/HistoryBlob.php 2011-06-14 04:14:17 UTC (rev
90034)
+++ trunk/phase3/includes/HistoryBlob.php 2011-06-14 06:07:20 UTC (rev
90035)
@@ -516,7 +516,7 @@
$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" );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs