From c9e9462eb41255bfc0082d1f34855661d65c7fba Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Tue, 20 Mar 2012 14:16:46 +0000 Subject: [PATCH] Followup r114233, define the method static variables to be used --- includes/CryptRand.php | 2 ++ 1 file changed, 2 insertions(+) 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( '' ) ); } -- 2.20.1