php_mcrypt
Posted by: KianWilliam (---.sabanet.ir)
Date: January 20, 2018 01:15PM

To whom it may concern:
To enable php_mcrypt extension, I checked php extensions from wamp tray, there was not any but when I type localhost in addressbar, I view it there listed. I also checked php.ini, it was not there.
My understanding is that wamp has it and I can use it already. True or False?
php version: 5.6.25 apache version: 2.4.23
Kian William

Options: ReplyQuote
Re: php_mcrypt
Posted by: Otomatic (Moderator)
Date: January 20, 2018 02:55PM

Hi

mycrypt => This PECL extension is not bundled with PHP.

[php.net]

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.4 32 bit - Apache 2.4.35 - PHP 7.2.11/7.1.23/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
Wampserver 3.1.4 64 bit - Apache 2.4.35 - PHP 7.2.11/7.1.23/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
PhPMyadmin 4.8.3 - 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: php_mcrypt
Posted by: RiggsFolly (Moderator)
Date: January 20, 2018 04:15PM

Just a note:

libmcrypt which the php_mcrypt extension provides an interface to is no longer maintained and considered AbandonWare.

Please read this as an example of why it should no longer be used

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.1.3 32bit & 64bit)
<Apache 2.4.29/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.39/5.5.28>
<MariaDB 10.2.14> <phpMyAdmin4.8.1> <MySQL Workbench 6.3.10>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: php_mcrypt
Posted by: KianWilliam (---.sabanet.ir)
Date: January 21, 2018 07:37AM

Thank you for all responses,
In zend framework 3, Zend\Crypt component with BCrypt is being used as a more secure way to encrypt form fields than md5 or sha1 and the component requires wamp to include php_mcrypt extension.
Is there an alternative? and why in localhost page php_mcrypt is still listed?
Kian William

Options: ReplyQuote
Re: php_mcrypt
Posted by: Otomatic (Moderator)
Date: January 21, 2018 09:39AM

Hi,

> and why in localhost page php_mcrypt is still listed?
This is not an extension that can be loaded or unloaded. It is an integral part of the PHP body for versions where mycrypt still exists.
Look at the content of phpinfo (), for example for PHP 5.6.33 for configure command
"--with-mcrypt=static"

For more information about use, see PHP documentation.
This » PECL extension is not bundled with PHP.

Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: » [pecl.php.net].

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.4 32 bit - Apache 2.4.35 - PHP 7.2.11/7.1.23/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
Wampserver 3.1.4 64 bit - Apache 2.4.35 - PHP 7.2.11/7.1.23/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
PhPMyadmin 4.8.3 - 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: php_mcrypt
Posted by: KianWilliam (---.sabanet.ir)
Date: January 21, 2018 11:03AM

Thanks
KianWilliam

Options: ReplyQuote


Sorry, only registered users may post in this forum.