? Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
18 Aug 2022

Summary of Changes

I'm currently checking our codebase for validity against PHP 7.2 and there are a few things which have come up. One of them is that the mcrypt library has been removed in PHP 7.2.0 completely.
https://www.php.net/manual/en/function.mcrypt-get-iv-size.php
This library does not exist for any version of PHP that Joomla supports and thus this class has not been possible to be used with MCrypt instead of OpenSSL. Since that means no one has been using this, we can remove this now without having to wait until 5.0.

avatar Hackwar Hackwar - open - 18 Aug 2022
avatar Hackwar Hackwar - change - 18 Aug 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Aug 2022
Category Libraries
avatar brianteeman
brianteeman - comment - 18 Aug 2022

exactly what @wilsonge said and I'm pretty sure this has come up before

avatar Hackwar
Hackwar - comment - 18 Aug 2022

I'm wondering what situation could come up where this would still work. Yes, someone might develop an extension across 3.x and 4.x which uses this, but the moment the user updates to PHP 7.2, it wont work anymore. Also, if they update to Joomla 4, this code also wont work anymore. That person also wont be able to decrypt old encrypted data with this code again after updating to 4.x. If a dev uses the class directly instead of the AES class, I really doubt that person is going to check the support prior. In that case it will still fail, regardless of us having this class here or them running into the problem of the missing mcrypt extension. I would still vote to remove this.

avatar HLeithner HLeithner - change - 18 Aug 2022
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2022-08-18 23:25:33
Closed_By HLeithner
Labels Added: ?
avatar HLeithner
HLeithner - comment - 18 Aug 2022

this is for combat and there is no reason to remove support in the bugfix release.
mcrypt still works with php 8.2.0 https://pecl.php.net/package/mcrypt

avatar HLeithner HLeithner - close - 18 Aug 2022
avatar HLeithner
HLeithner - comment - 6 Sep 2022

@Hackwar would you please so kind an recreate the PR for 5.0?

Add a Comment

Login with GitHub to post a comment