• Resolved pianory

    (@pianory)


    Hello,

    I am upgrading a site to PHP v7.2, and WP Security Audit Log free version download Oct 15, 2018 did not pass several checks. I’m including the command I used to find this, as well as the warnings & errors below.

    phpcs -d memory_limit=2G -p wp-security-audit-log/ –standard=PHPCompatibility –runtime-set testVersion 7.2 –extensions=php

    FILE: wp-security-audit-log/classes/Connector/wp-db-custom.php
    ——————————————————————————————————————————
    FOUND 2 ERRORS AFFECTING 2 LINES
    ——————————————————————————————————————————
    192 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    194 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    ——————————————————————————————————————————

    FILE: wp-security-audit-log/classes/Views/Help.php
    ——————————————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ——————————————————————————————————————
    414 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
    ——————————————————————————————————————

    FILE: wp-security-audit-log/classes/Ref.php
    ————————————————————————————————————-
    FOUND 7 ERRORS AFFECTING 6 LINES
    ————————————————————————————————————-
    1487 | ERROR | Function mysql_list_dbs() is deprecated since PHP 5.4 and removed since PHP 7.0
    1487 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    1488 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    1493 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    1494 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    1495 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    1503 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    ————————————————————————————————————-

    FILE: wp-security-audit-log/sdk/freemius/includes/fs-essential-functions.php
    ——————————————————————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ——————————————————————————————————————————————–
    173 | WARNING | Function name “__fs” is discouraged; PHP has reserved all method names with a double underscore prefix for future use.
    ——————————————————————————————————————————————–

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support robertabela

    (@robert681)

    Hello @pianory,

    Thank you for reporting this.

    I can confirm that the plugin runs on PHP 7.2, that is what we run it on in our live sites and testing environment.

    It is strange we missed these warnings though. We will address them in the next update, which should be available in a few weeks. If you’d like to be notified when the new update is available, please subscribe to the newsletter.

    Let me know if we can be of further assistance.

    Thread Starter pianory

    (@pianory)

    Hello @robert681, thanks for your response and code review!

    In briefly reviewing one of the code sniff flags, it is apparent that some of them are conditionals to provide support older versions of PHP. I understand old functions may need to stick around for a while to support other WordPress users.

    Good to know that you don’t have any problems operating on PHP 7.2!

    Ryan

    Plugin Support robertabela

    (@robert681)

    Correct, that is why we have them. And yes the plugin runs properly on 7.2. Should you have any further queries do not hesitate to get in touch.

    Have a good day.

    Thread Starter pianory

    (@pianory)

    Thank you sir!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Compatibility check failed for PHP v7.2’ is closed to new replies.