?
avatar mbabker
mbabker
20 Sep 2017

We have checks in core regarding the presence of the mcrypt extension. Since that has been dropped in PHP 7.2, we need to update core to account for this.

avatar mbabker mbabker - open - 20 Sep 2017
avatar joomla-cms-bot joomla-cms-bot - change - 20 Sep 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Sep 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Sep 2017
Category External Library
avatar brianteeman
brianteeman - comment - 27 Sep 2017

Although we have the checks didnt we already remove any usage of mcrypt? I thought the only place it was used was in tfa and we stopped that back with 3.6.3

avatar mbabker
mbabker - comment - 27 Sep 2017

I'm pretty sure use of it is phased out, or in optional paths (i.e. the FOF and core encryption adapters). But, we still have some code checks in places that should probably be dropped (or if we want to check for presence at least wrap it in a PHP version conditional).

// Check for mcrypt support
$option = new stdClass;
$option->label = JText::_('INSTL_MCRYPT_SUPPORT_AVAILABLE');
$option->state = is_callable('mcrypt_encrypt');
$option->notice = $option->state ? null : JText::_('INSTL_NOTICEMCRYPTNOTAVAILABLE');
$options[] = $option;

'mcrypt' => extension_loaded('mcrypt'),

avatar brianteeman
brianteeman - comment - 27 Sep 2017

didnt the fof update back in 2016 remove it?

avatar brianteeman
brianteeman - comment - 27 Sep 2017

sorry i was wrong on that.

avatar mbabker
mbabker - comment - 28 Sep 2017

The hard dependency was removed. The mcrypt adapter is still there.

All of our mcrypt code paths are still usable, even on PHP 7.2 if you install the PECL extension (why you'd want to is beyond me but hey, more power to you). Those two links I pointed out above though are system health checks that make an implication that mcrypt should be installed. Those are the types of things we need to deal with at this point. It's not about functionality at this point really, it's more about what we're communicating to users in validating their server is "good" to run the software.

avatar brianteeman
brianteeman - comment - 28 Sep 2017

Ok. I will take a look at doing a pr for that then

avatar Quy
Quy - comment - 30 Sep 2017

See PR #18169

avatar joomla-cms-bot joomla-cms-bot - change - 30 Sep 2017
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 30 Sep 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Sep 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-09-30 13:05:36
Closed_By franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 30 Sep 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 30 Sep 2017

closed as having Pull Request #18169

Thanks for Hint @Quy


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18007.

Add a Comment

Login with GitHub to post a comment