We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In PHP7, mcryot_create_iv() is deprecated. Due to https://github.com/bshaffer/oauth2-server-php/pull/368/files, using mcrypt_create_iv as the default method to generate random bytes causes a deprecated warning.
if (function_exists('mcrypt_create_iv')) { $randomData = mcrypt_create_iv(20, MCRYPT_DEV_URANDOM); if ($randomData !== false && strlen($randomData) === 20) { return bin2hex($randomData); } }
Should we just remove that block or just add version_compare like
if (function_exists('mcrypt_create_iv') && version_compare(7, phpversion()) == 1) { $randomData = mcrypt_create_iv(20, MCRYPT_DEV_URANDOM); if ($randomData !== false && strlen($randomData) === 20) { return bin2hex($randomData); } }
The text was updated successfully, but these errors were encountered:
Looks like this would be resolved by #773
Sorry, something went wrong.
and it's been released so this issue might be closed ( #788 )
No branches or pull requests
In PHP7, mcryot_create_iv() is deprecated.
Due to https://github.com/bshaffer/oauth2-server-php/pull/368/files, using mcrypt_create_iv as the default method to generate random bytes causes a deprecated warning.
Should we just remove that block or just add version_compare like
The text was updated successfully, but these errors were encountered: