From: Tim Starling Date: Fri, 17 Feb 2012 00:28:17 +0000 (+0000) Subject: Clarified comment per CR r111701 X-Git-Tag: 1.31.0-rc.0~24658 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=346181cce14dda680eefeda3a42e789d0bf297df;p=lhc%2Fweb%2Fwiklou.git Clarified comment per CR r111701 --- diff --git a/includes/HistoryBlob.php b/includes/HistoryBlob.php index 7887ff85d9..9e63791f8d 100644 --- a/includes/HistoryBlob.php +++ b/includes/HistoryBlob.php @@ -567,10 +567,11 @@ class DiffHistoryBlob implements HistoryBlob { function xdiffAdler32( $s ) { static $init; if ( $init === null ) { - // The real Adler-32 checksum of this string is zero, so it - // initialises the state to the LibXDiff initial value. $init = str_repeat( "\xf0", 205 ) . "\xee" . str_repeat( "\xf0", 67 ) . "\x02"; } + // The real Adler-32 checksum of $init is zero, so it initialises the + // state to zero, as it is at the start of LibXDiff's checksum + // algorithm. Appending the subject string then simulates LibXDiff. if ( function_exists( 'hash' ) ) { $hash = hash( 'adler32', $init . $s, true ); } elseif ( function_exists( 'mhash' ) ) {