From: Sam Reed Date: Tue, 20 Mar 2012 14:16:46 +0000 (+0000) Subject: Followup r114233, define the method static variables to be used X-Git-Tag: 1.31.0-rc.0~24174 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=c9e9462eb41255bfc0082d1f34855661d65c7fba;p=lhc%2Fweb%2Fwiklou.git Followup r114233, define the method static variables to be used --- diff --git a/includes/CryptRand.php b/includes/CryptRand.php index ef425cb5da..37f5ed7465 100644 --- a/includes/CryptRand.php +++ b/includes/CryptRand.php @@ -187,6 +187,7 @@ class MWCryptRand { * @return String A hash algorithm */ protected function hashAlgo() { + static $algo; if ( !is_null( $algo ) ) { return $algo; } @@ -217,6 +218,7 @@ class MWCryptRand { * @return int Number of bytes the hash outputs */ protected function hashLength() { + static $hashLength; if ( is_null( $hashLength ) ) { $hashLength = strlen( $this->hash( '' ) ); }