summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-02-24 12:06:58 +0000
committerDries Buytaert <dries@buytaert.net>2011-02-24 12:06:58 +0000
commitb3094a0b7605dffa1e695ad72b3da04208a2d2a8 (patch)
tree6c8b11d5aa89578dd7032b2b9d6b2cf4a8b2bd9c
parentbe689dc4cf941b55c29a1d8f5f5fea348faac41b (diff)
downloadbrdo-b3094a0b7605dffa1e695ad72b3da04208a2d2a8.tar.gz
brdo-b3094a0b7605dffa1e695ad72b3da04208a2d2a8.tar.bz2
- Patch #1068184 by bfroehle: _openid_get_math_library() should not use drupal_static().
-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')) {