dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1e8887
)
Revert r89925, setting disable_functions in php.ini is definitely the wrong way to...
author
Tim Starling
<tstarling@users.mediawiki.org>
Tue, 14 Jun 2011 06:07:20 +0000
(06:07 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Tue, 14 Jun 2011 06:07:20 +0000
(06:07 +0000)
includes/HistoryBlob.php
patch
|
blob
|
history
diff --git
a/includes/HistoryBlob.php
b/includes/HistoryBlob.php
index
7535a0d
..
f707b3f
100644
(file)
--- 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" );