Skip to content

Commit

Permalink
[Security/Core] work around sodium_compat issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jun 26, 2019
1 parent fe5a4ee commit df50685
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -26,7 +26,7 @@ public static function isSupported()
return true;
}

return \function_exists('sodium_crypto_pwhash_str') || \extension_loaded('libsodium');
return version_compare(\extension_loaded('sodium') ? \SODIUM_LIBRARY_VERSION : phpversion('libsodium'), '1.0.9', '>=');
}

/**
Expand Down

0 comments on commit df50685

Please sign in to comment.