PeeHaa / OpCacheGUI

GUI for PHP's OpCache
1.46k stars 170 forks source link

PHP 7 mcrypt_create_iv() is deprecated #81

Closed jonahbohlmann closed 6 years ago

jonahbohlmann commented 7 years ago

Hi,

for PHP 7.1.3 I got the following error: Deprecated: Function mcrypt_create_iv() is deprecated in /var/www/opcache.sergo.local/OpCacheGUI/src/OpCacheGUI/Security/Generator/Mcrypt.php

Is there anybody who has is fixed the file already? Or can I simple change mcrypt to openssl functions?

Thanks!

AJMaxwell commented 7 years ago

You can switch to openssl functions or use random_bytes() as the PHP Manual suggests.

PeeHaa commented 6 years ago

This has been fixed in master https://github.com/PeeHaa/OpCacheGUI/commit/3f8005d28db95d6c7fc87d2339dc64dbdcd9f70e