summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/openid/openid.inc4
1 files changed, 3 insertions, 1 deletions
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')) {