PHP 7.2 Compatibility

Home Forums BulletProof Security Pro PHP 7.2 Compatibility

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #37002
    AITpro Admin
    Keymaster

    Question copied from https://wordpress.org/support/topic/php-7-2-support-7/#post-10836338

    Hi,

    just ran https://github.com/PHPCompatibility/PHPCompatibility for plugin/bulletproof-security and got:

    FILE: /var/www/wordpress/wp-content/plugins/bulletproof-security/admin/login/lsm-export.php
    ——————————————————————————————-
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ——————————————————————————————-
    80 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    ——————————————————————————————-

    FILE: /var/www/wordpress/wp-content/plugins/bulletproof-security/admin/wizard/wizard-backup.php
    ———————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————————————–
    103 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    ———————————————————————————————–

    FILE: /var/www/wordpress/wp-content/plugins/bulletproof-security/admin/system-info/system-info.php
    ——————————————————————————————————–
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    ——————————————————————————————————–
    767 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
    815 | WARNING | INI directive ‘register_globals’ is deprecated since PHP 5.3 and removed since PHP 5.4
    842 | WARNING | INI directive ‘magic_quotes_gpc’ is deprecated since PHP 5.3 and removed since PHP 5.4
    ——————————————————————————————————–

    FILE: /var/www/wordpress/wp-content/plugins/bulletproof-security/admin/core/core-export-import.php
    ————————————————————————————————–
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ————————————————————————————————–
    32 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    180 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    ————————————————————————————————–

    FILE: /var/www/wordpress/wp-content/plugins/bulletproof-security/admin/mod-test/index.php
    ——————————————————————————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ——————————————————————————————————————————————————
    1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags
    | | but PHP does not allow them.
    ——————————————————————————————————————————————————

    FILE: /var/www/wordpress/wp-content/plugins/bulletproof-security/includes/mscan-ajax-functions.php
    ————————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ————————————————————————————————–
    644 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    ————————————————————————————————–

    FILE: /var/www/wordpress/wp-content/plugins/bulletproof-security/includes/db-security.php
    —————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    —————————————————————————————–
    307 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    —————————————————————————————–

    FILE: /var/www/wordpress/wp-content/plugins/bulletproof-security/includes/hud-dismiss-functions.php
    —————————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    —————————————————————————————————
    53 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
    —————————————————————————————————

    FILE: /var/www/wordpress/wp-content/plugins/bulletproof-security/includes/zip-email-cron-functions.php
    ——————————————————————————————————
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    ——————————————————————————————————
    322 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    361 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    400 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    ——————————————————————————————————

    This should be fixed.

    Best regards!

    #37003
    AITpro Admin
    Keymaster

    There are several PHP 7.2 compatibility checking scripts that will detect these issues.  The ones I am aware of are SiteGround, Cloudflare and the GitHub php compatibility script in the link above.  All of the warnings in the PHP 7.2 compatibility checking script can be disregarded.

    Any/all warnings regarding > INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2 can be disregarded because BPS and BPS Pro use this checking condition below to check if this php.ini directive is in use > mbstring.func_overload. What that means is that the mbstring.func_overload php.ini directive will only be processed if it exists and is enabled.

    if ( ini_get( 'mbstring.func_overload' ) && function_exists( 'mb_internal_encoding' ) ) {
    
    $previous_encoding = mb_internal_encoding();
    
    mb_internal_encoding( 'ISO-8859-1' );
    
    }

    These warnings below can be disregarded because the PHP compatibility script is finding the BPS error checking code, which is also checking for compatibility/errors for these php.ini directives.  In other words, the GitHub script is error checking BPS error checking code.

    767 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
    815 | WARNING | INI directive ‘register_globals’ is deprecated since PHP 5.3 and removed since PHP 5.4
    842 | WARNING | INI directive ‘magic_quotes_gpc’ is deprecated since PHP 5.3 and removed since PHP 5.4

    This warning below can be disregarded because there is not actually a problem occurring.  This file is an HTML index file and does not contain any php code.  This file is not using short open tags. So this error/warning is not really a valid error/warning.

    1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags
    | | but PHP does not allow them.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.