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 order to future-proof CI3 mt_rand() should be replaced with random_int(PHP_INT_MIN, PHP_INT_MAX) for PHP versions starting with 7.0.0.
This affects the following system files:
core\Common.php core\Security.php helpers\captcha_helper.php helpers\form_helper.php helpers\string_helper.php libraties\Upload.php
If one doesnt need support for PHP lower than 7, then its just a simple replacement otherwise a check of the PHP version would be required.
The text was updated successfully, but these errors were encountered:
Fix upcoming deprecation of mt_rand on newer php versions
3c9fcc8
* provide a workaround function in code/Common like is_php does * closes bcit-ci/CodeIgniter#6275 * related to pocketarc/codeigniter#3 (comment)
67f7eb9
e46e1d9
No branches or pull requests
In order to future-proof CI3 mt_rand() should be replaced with random_int(PHP_INT_MIN, PHP_INT_MAX) for PHP versions starting with 7.0.0.
This affects the following system files:
core\Common.php
core\Security.php
helpers\captcha_helper.php
helpers\form_helper.php
helpers\string_helper.php
libraties\Upload.php
If one doesnt need support for PHP lower than 7, then its just a simple replacement otherwise a check of the PHP version would be required.
The text was updated successfully, but these errors were encountered: