PHP Compatibility check failed for PHP v7.2
-
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.
——————————————————————————————————————————————–
The topic ‘PHP Compatibility check failed for PHP v7.2’ is closed to new replies.