• Resolved AiratTop

    (@airathalitov)


    FILE: /var/www/test.site/wp-content/plugins/wordfence/lib/wfConfig.php
    ------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------
     719 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    ------------------------------------------------------------------------------------------------------------
    
    FILE: /var/www/test.site/wp-content/plugins/wordfence/lib/wfUtils.php
    -------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -------------------------------------------------------------------------------------
     2302 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
    -------------------------------------------------------------------------------------
    
    FILE: /var/www/test.site/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/utils.php
    ---------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 7 ERRORS AND 2 WARNINGS AFFECTING 7 LINES
    ---------------------------------------------------------------------------------------------------------------------------------------------------------
     294 | ERROR   | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
     294 | ERROR   | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead
     294 | ERROR   | The constant "MCRYPT_DEV_URANDOM" is deprecated since PHP 7.1 and removed since PHP 7.2
     348 | WARNING | INI directive 'magic_quotes_sybase' is deprecated since PHP 5.3 and removed since PHP 5.4
     405 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
     843 | ERROR   | Global variable '$HTTP_RAW_POST_DATA' is deprecated since PHP 5.6 and removed since PHP 7.0; Use php://input instead
     844 | ERROR   | Global variable '$HTTP_RAW_POST_DATA' is deprecated since PHP 5.6 and removed since PHP 7.0; Use php://input instead
     862 | ERROR   | Global variable '$HTTP_RAW_POST_DATA' is deprecated since PHP 5.6 and removed since PHP 7.0; Use php://input instead
     866 | ERROR   | Global variable '$HTTP_RAW_POST_DATA' is deprecated since PHP 5.6 and removed since PHP 7.0; Use php://input instead
    ---------------------------------------------------------------------------------------------------------------------------------------------------------

    Wordfence Security 7.1.16
    PHP Compatibility Checker 1.4.6

Viewing 2 replies - 1 through 2 (of 2 total)
  • We are completely compatible with PHP 7 and regularly test against it. What we do have is have code that is there so that we are backwards compatible with older versions because despite everyone saying people need to upgrade, they often do not. We have a minimum version that we support and test with. The code that you were alerted to is the code that is there for that purpose.

    As it says on the plugin page for the compatibility checker
    “Please note that linting code is not perfect. This plugin cannot detect unused code-paths that might be used for backwards compatibility, and thus might show false positives.

    Tim

    Thread Starter AiratTop

    (@airathalitov)

    Thank you for your answer!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wordfence Security PHP 7.2 Compatibility test’ is closed to new replies.