We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd248c0 commit 394fcadCopy full SHA for 394fcad
lib/mcrypt.php
@@ -793,7 +793,11 @@ function phpseclib_mcrypt_generic_deinit(Base &$td)
793
{
794
$reflectionObject = new \ReflectionObject($td);
795
$reflectionProperty = $reflectionObject->getProperty('key');
796
- $reflectionProperty->setAccessible(true); // can be dropped in PHP 8.1.0+
+
797
+ if (PHP_VERSION_ID < 80100) {
798
+ $reflectionProperty->setAccessible(true);
799
+ }
800
801
if (!strlen($reflectionProperty->getValue($td))) {
802
trigger_error('mcrypt_generic_deinit(): Could not terminate encryption specifier', E_USER_WARNING);
803
return false;
0 commit comments