Random_Compat: The version included with 4.4 only supports the PHP 5.2+ namespace version of libsodium, don't attempt to use it with PHP 5.2 or old libsodium versions.
Fixes #35327. git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36257 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
429c624941
commit
bd3c89d1fc
@ -56,7 +56,7 @@ if (PHP_VERSION_ID < 70000) {
|
||||
*
|
||||
* See ERRATA.md for our reasoning behind this particular order
|
||||
*/
|
||||
if (extension_loaded('libsodium')) {
|
||||
if (PHP_VERSION_ID >= 50300 && extension_loaded('libsodium') && function_exists('\\Sodium\\randombytes_buf')) {
|
||||
// See random_bytes_libsodium.php
|
||||
require_once $RandomCompatDIR.'/random_bytes_libsodium.php';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user