paragonie / random_compat

PHP 5.x support for random_bytes() and random_int()

Home Page:https://paragonie.com/projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

php7 Compatibility problem

oasfuyou opened this issue · comments

INI directive 'mbstring.func_overload' is deprecated since PHP 7.2

58 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead
58 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
58 | ERROR | The constant "MCRYPT_DEV_URANDOM" is deprecated since PHP 7.1 and removed since PHP 7.2

commented

That's weird. That code shouldn't even be running in PHP 7.1 environments.

It's not ... The guy just ran a static analyzer on a bunch of popular frameworks & libraries and reported everything that came out.

commented

Ah, okay. I'm going to close this as a false positive. Thanks @narfbg