CodeIgniter Forums
[split] mcrypt deprecated - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: [split] mcrypt deprecated (/thread-69396.html)



[split] mcrypt deprecated - sameernaqvi - 11-14-2017

(09-25-2017, 11:32 AM)jlp Wrote: CodeIgniter 3.1.6 was released today, with some changes and some bug fixes.

Changes: Updated the 'redis' and 'memcached' session drivers to reduce the potential for locking race conditions; deprecated the cache_apc driver.

Bug fixes: Database, Image, Loader, profiler and Query Builder libraries.

This is recommended for all users of version 3. Download v3.1.6 now, and we encourage you to read the changelog, and to check the directions for upgrading from a previous version.

Thanks for the continuous updates. Last week I have installed php7.1 on my development machine in order to upgrade all the company's websites. Every think is seems fixed now except the following errors.

A PHP Error was encountered
Severity: 8192
Message: Function mcrypt_get_iv_size() is deprecated
Filename: libraries/Encrypt.php
Line Number: 315


A PHP Error was encountered

Severity: 8192

Message: Function mcrypt_decrypt() is deprecated

Filename: libraries/Encrypt.php
Line Number: 325

I am using codeigniter 3.1.6 though.
It seems like required to update the core Encrypt.php where the functions are mcrypt_get_iv_size() and mcrypt_decrypt() as they are deprecated.



RE: [split] mcrypt deprecated - ciadmin - 11-14-2017

mcrypt has been deprecated and is no longer used. You need to update your code.
https://www.codeigniter.com/user_guide/changelog.html?highlight=mcrypt#version-3-1-4


RE: [split] mcrypt deprecated - Narf - 11-14-2017

CI_Encrypt has itself been deprecated since 3.0.0 ...


RE: [split] mcrypt deprecated - sameernaqvi - 11-14-2017

Thanks for your prompt reply.
It's really helpful.