From b3094a0b7605dffa1e695ad72b3da04208a2d2a8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 24 Feb 2011 12:06:58 +0000 Subject: - Patch #1068184 by bfroehle: _openid_get_math_library() should not use drupal_static(). --- modules/openid/openid.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/openid/openid.inc b/modules/openid/openid.inc index e820cd60f..c9bcd6c17 100644 --- a/modules/openid/openid.inc +++ b/modules/openid/openid.inc @@ -687,7 +687,9 @@ function openid_extract_ax_values($values, $uris) { * Determine the available math library GMP vs. BCMath, favouring GMP for performance. */ function _openid_get_math_library() { - $library = &drupal_static(__FUNCTION__); + // Not drupal_static(), because a function is not going to disappear and + // change the output of this under any circumstances. + static $library; if (empty($library)) { if (function_exists('gmp_add')) { -- cgit v1.2.3