Failing Some PHP Compatibility Checks
-
Hello,
We want to upgrade our website to use PHP 7.2 or higher. We used a plugin to scan for PHP 7.2 compatibility and only 2 out of 31 plugins have warnings. This plugin is one of the two.Could you advise on if you are aware of and/or keeping up with PHP version changes? The plugin alleges the following. I have yet to confirm by referencing the PHP changelog directly.
FILE: /home/r/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Input.php ------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------------------- 841 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 841 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead 841 | ERROR | The constant "MCRYPT_DEV_URANDOM" is deprecated since PHP 7.1 and removed since PHP 7.2 ------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /home/r/public_html/wp-content/plugins/woo-discount-rules/v1/vendor/flycartinc/inputhelper/src/StringHelper.php ------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------------- 15 | WARNING | INI directive 'mbstring.internal_encoding' is deprecated since PHP 5.6 16 | WARNING | INI directive 'mbstring.http_input' is deprecated since PHP 5.6 17 | WARNING | INI directive 'mbstring.http_output' is deprecated since PHP 5.6 23 | WARNING | All previously accepted values for the $type parameter of iconv_set_encoding() have been deprecated since PHP 5.6. Found 'internal_encoding' 24 | WARNING | All previously accepted values for the $type parameter of iconv_set_encoding() have been deprecated since PHP 5.6. Found 'input_encoding' 25 | WARNING | All previously accepted values for the $type parameter of iconv_set_encoding() have been deprecated since PHP 5.6. Found 'output_encoding' -------------------------------------------------------------------------------------------------------------------------------------------------------------
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Failing Some PHP Compatibility Checks’ is closed to new replies.