diff --git a/autoload.php b/autoload.php index b364e7e8..e436b3c1 100644 --- a/autoload.php +++ b/autoload.php @@ -45,7 +45,7 @@ function sodiumCompatAutoloader($class) require_once dirname(__FILE__) . '/lib/sodium_compat.php'; } if (PHP_VERSION_ID < 70200 || !extension_loaded('sodium')) { - if (PHP_VERSION_ID >= 50300 && !defined('SODIUM_LIBRARY_VERSION_MAJOR')) { + if (PHP_VERSION_ID >= 50300 && !defined('SODIUM_LIBRARY_MAJOR_VERSION')) { require_once dirname(__FILE__) . '/lib/php72compat_const.php'; } assert(class_exists('ParagonIE_Sodium_Compat'), 'Possible filesystem/autoloader bug?'); diff --git a/lib/php72compat_const.php b/lib/php72compat_const.php index 1346d021..6a4247aa 100644 --- a/lib/php72compat_const.php +++ b/lib/php72compat_const.php @@ -1,8 +1,8 @@