Commit b3094a0b authored by Dries's avatar Dries
Browse files

- Patch #1068184 by bfroehle: _openid_get_math_library() should not use drupal_static().

parent be689dc4
......@@ -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')) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment