Skip to content

Commit

Permalink
Fix for #107
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed Nov 7, 2019
1 parent 8228b28 commit 063cae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function sodiumCompatAutoloader($class)
require_once dirname(__FILE__) . '/src/PHP52/SplFixedArray.php';
}
if (PHP_VERSION_ID < 70200 || !extension_loaded('sodium')) {
if (PHP_VERSION_ID >= 50300 && !defined('SODIUM_LIBRARY_MAJOR_VERSION')) {
if (PHP_VERSION_ID >= 50300 && !defined('SODIUM_CRYPTO_SCALARMULT_BYTES')) {
require_once dirname(__FILE__) . '/lib/php72compat_const.php';
}
if (PHP_VERSION_ID >= 70000) {
Expand Down

0 comments on commit 063cae9

Please sign in to comment.