Wamp64 (64-bit) -- There is no 'mcrypt' Functionaltiy
Posted by: Len_Jacobson@usa.net (---.hsd1.ca.comcast.net)
Date: August 11, 2019 04:11PM

I have a fair bit of complex code that depends on 'mcrypt' functionality. In this forum, I have read the suggestion that it has been deprecated. Is this true?

If so, can someone please suggest an alternative and guide me to good documentation for its use?

Thank you.

Len Jacobson

Options: ReplyQuote
Re: Wamp64 (64-bit) -- There is no 'mcrypt' Functionaltiy
Posted by: Otomatic (Moderator)
Date: August 11, 2019 04:42PM

Hi,

RTFM - It is ALWAYS necessary to read the documentation.

[www.php.net]

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.9 32 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27 - MariaDB 10.3.16
Wampserver 3.1.9 64 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27/8.0.17 - MariaDB 10.3.16
PhPMyadmin 4.9.0.1 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: Wamp64 (64-bit) -- There is no 'mcrypt' Functionaltiy
Posted by: Len_Jacobson@usa.net (---.hsd1.ca.comcast.net)
Date: August 11, 2019 05:05PM

I politely accept the rebuke from you. You are, of course, correct to tell me to read the documentation. I should have done that.

I'm just very nervous about changing that code as it was (for my level of expertise) the "fanciest" code I have ever written. Now I will see if I can write even better code.

Len Jacobson

Options: ReplyQuote
Re: Wamp64 (64-bit) -- There is no 'mcrypt' Functionaltiy
Posted by: Otomatic (Moderator)
Date: August 11, 2019 06:34PM

Hi,

*** Warning This feature was DEPRECATED in PHP 7.1.0, and REMOVED in PHP 7.2.0.

> I have a fair bit of complex code that depends on 'mcrypt' functionality.

Locally, you use a PHP version < 7.1.0, for example 7.0.33 or 5.6.40 to check that all your mcrypt features work perfectly.
From there, you make a copy of the local site to put it under another VirtualHost and it is this new local site that you will run under PHP 7.1.0 or 7.2.0 or 7.3.8 to modify your functions that used mcrypt. This way, you are safe, the original site still exists and is not modified.

My previous answer may have seemed a little "sharp" to you, but this forum is intended to help you run Wampserver correctly, not to fix PHP scripts or SQL queries.

RiggFolly's signature, mine, and the Documentation items in the Apache, PHP, MySQL and MariaDB menus of Wampmanager provide links to the official documentation.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.9 32 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27 - MariaDB 10.3.16
Wampserver 3.1.9 64 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27/8.0.17 - MariaDB 10.3.16
PhPMyadmin 4.9.0.1 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote


Sorry, only registered users may post in this forum.