robrichards/xmlseclibs

PHP Warning: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' (this will throw an Error in a future version of PHP) in /app/vendor/robrichards/xmlseclibs/src/XMLSecurityKey.php on line 136

Closed this issue · 3 comments

Hi, I recently ran into the issue from #148 while using 2.1.0 of this library on PHP 7.2.

Specifically:

PHP Warning: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' (this will throw an Error in a future version of PHP) in /app/vendor/robrichards/xmlseclibs/src/XMLSecurityKey.php on line 136
PHP Warning: Use of undefined constant MCRYPT_MODE_CBC - assumed 'MCRYPT_MODE_CBC' (this will throw an Error in a future version of PHP) in /app/vendor/robrichards/xmlseclibs/src/XMLSecurityKey.php on line 137
PHP Warning: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' (this will throw an Error in a future version of PHP) in /app/vendor/robrichards/xmlseclibs/src/XMLSecurityKey.php on line 136

Is this an issue that can be resolved by removing usage of Mcrypt? php-mcrypt has been removed from PHP 7.2.

Upgrade to 3.x and your warnings will magically disappear

@robrichards I think it's safe to close this one.. The issue was resolved in v3 of the library.
You may want to update the README on master though.. 3.x isn't mentioned there at all

Thanks