• Resolved lawriem1

    (@lawriem1)


    On running a PHP compatibility programme, it flagged up problems with the Wordfence plugin as below.

    www/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/utils.php
    —————————————————————————————————————————————
    FOUND 4 ERRORS AND 4 WARNINGS AFFECTING 6 LINES
    —————————————————————————————————————————————
    293 | WARNING | Function mcrypt_create_iv() is deprecated since PHP 7.1; Use random_bytes() or OpenSSL instead
    293 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available instead
    293 | WARNING | The constant “MCRYPT_DEV_URANDOM” is deprecated since PHP 7.1
    347 | WARNING | INI directive ‘magic_quotes_sybase’ is deprecated since PHP 5.3 and removed since PHP 5.4
    842 | ERROR | Global variable ‘$HTTP_RAW_POST_DATA’ is deprecated since PHP 5.6 and removed since PHP 7.0; Use php://input instead
    843 | ERROR | Global variable ‘$HTTP_RAW_POST_DATA’ is deprecated since PHP 5.6 and removed since PHP 7.0; Use php://input instead
    848 | ERROR | Global variable ‘$HTTP_RAW_POST_DATA’ is deprecated since PHP 5.6 and removed since PHP 7.0; Use php://input instead
    851 | ERROR | Global variable ‘$HTTP_RAW_POST_DATA’ is deprecated since PHP 5.6 and removed since PHP 7.0; Use php://input instead

Viewing 1 replies (of 1 total)
  • Hi,
    These referenced lines of the code are being used for backwards compatibility, I mean these are false-positive warnings, you don’t have to worry about that.

    I’m quoting this text from the PHP Compatibility Checker page:

    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. We maintain a whitelist of plugins that can cause false positives. We are continuously working to ensure the checker provides the most accurate results possible.

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP 7.1 Issue’ is closed to new replies.