CodeIgniter Forums
Codeigniter 3.1.6 with PHP7.1 and Nginx - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Codeigniter 3.1.6 with PHP7.1 and Nginx (/showthread.php?tid=69397)



Codeigniter 3.1.6 with PHP7.1 and Nginx - sameernaqvi - 11-14-2017

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.

Could you help me how to fix the core lib error or should I wait for next release as I use this Encrypt lib many places?
Your help in this regards will be helpful.


RE: Codeigniter 3.1.6 with PHP7.1 and Nginx - Narf - 11-14-2017

Closing as duplicate of https://forum.codeigniter.com/thread-69396.html

(should've been the other way around, but now there are already replies there, so ...)