• Resolved Malae

    (@malae)


    Please be advised of the following warnings and errors:

    FILE: /wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/utils.php
    ---------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 7 ERRORS AND 2 WARNINGS AFFECTING 7 LINES
    ---------------------------------------------------------------------------------------------------------------------------------------------------------
     293 | ERROR   | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead
     293 | ERROR   | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
     293 | ERROR   | The constant "MCRYPT_DEV_URANDOM" is deprecated since PHP 7.1 and removed since PHP 7.2
     347 | WARNING | INI directive 'magic_quotes_sybase' is deprecated since PHP 5.3 and removed since PHP 5.4
     404 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
     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
    ---------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /wp-content/plugins/wordfence/lib/wfUtils.php
    -------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -------------------------------------------------------------------------------------
     2023 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
    -------------------------------------------------------------------------------------
    
    FILE: wp-content/plugins/wordfence/lib/wfConfig.php
    ------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------
     590 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @malae
    Thanks for sharing this report with us, I’ve logged that to our Quality Assurance department for review.

    Have a good day!

    Our team reviewed all of these warnings one by one and it has been confirmed that all of them are being used for backward compatibility.

    Thanks.

    Thread Starter Malae

    (@malae)

    Thanks Alaa,

    I thought that they may only be there for backward compatibility, but was unable to run checks at the time I discovered them. I thought it better to bring to the attention of WF in case there could be problems.

    Sorry to resurrect this thread, but is this backwards compatible code, only executed in environments with old PHP versions?

    Is it safe to use PHP 7.2 with WordFence?

    Best regards
    Bjarne

    Hi Bjarne,

    The answer is “yes” for both questions.

    Thanks.

    Thank you – thought so, but preferred to be sure ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP 7.0, 7.1 & 7.2 warnings and errors’ is closed to new replies.