Skip to content

Commit b3094a0

Browse files
committed
- Patch #1068184 by bfroehle: _openid_get_math_library() should not use drupal_static().
1 parent be689dc commit b3094a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/openid/openid.inc

+3-1
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,9 @@ function openid_extract_ax_values($values, $uris) {
687687
* Determine the available math library GMP vs. BCMath, favouring GMP for performance.
688688
*/
689689
function _openid_get_math_library() {
690-
$library = &drupal_static(__FUNCTION__);
690+
// Not drupal_static(), because a function is not going to disappear and
691+
// change the output of this under any circumstances.
692+
static $library;
691693

692694
if (empty($library)) {
693695
if (function_exists('gmp_add')) {

0 commit comments

Comments
 (0)