PHP 7 Compatibility

Home Forums BulletProof Security Pro PHP 7 Compatibility

Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #32573
    Chris Moon
    Participant

    Hi,

    There’s PHP 5.6 on my VPS and before upgrading to PHP 7 I’ve run a test using the WP plugin PHP compatibility checker.

    BPS Pro triggers the following warnings and errors, what do I need to do before updating PHP?

    FILE: /customers/a/7/0/xxxxxxxxxxx.com/httpd.www/wp-content/plugins/bulletproof-security/admin/system-info/system-info.php
    --------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    --------------------------------------------------------------------------------------------------------------------------------
     785 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
     833 | WARNING | INI directive 'register_globals' is deprecated since PHP 5.3 and removed since PHP 5.4.
     860 | WARNING | INI directive 'magic_quotes_gpc' is deprecated since PHP 5.3 and removed since PHP 5.4.
    --------------------------------------------------------------------------------------------------------------------------------
    FILE: /customers/a/7/0/xxxxxxxxxxx.com/httpd.www/wp-content/plugins/bulletproof-security/admin/tools/tools.php
    --------------------------------------------------------------------------------------------------------------------
    FOUND 11 ERRORS AND 1 WARNING AFFECTING 12 LINES
    --------------------------------------------------------------------------------------------------------------------
     1042 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
     1447 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
     1453 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
     1462 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
     1470 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
     1481 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
     1483 | 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.
     1515 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
     1525 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
     1554 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
     1595 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0 - use mysqli instead.
    --------------------------------------------------------------------------------------------------------------------
    FILE: /customers/a/7/0/xxxxxxxxxxx.com/httpd.www/wp-content/plugins/bulletproof-security/admin/php/php-options.php
    ------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
    ------------------------------------------------------------------------------------------------------------------------
     1003 | WARNING | INI directive 'define_syslog_variables' is deprecated since PHP 5.3 and removed since PHP 5.4.
     1007 | WARNING | INI directive 'define_syslog_variables' is deprecated since PHP 5.3 and removed since PHP 5.4.
     1111 | WARNING | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
     1115 | WARNING | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
    ------------------------------------------------------------------------------------------------------------------------
    FILE: /customers/a/7/0/xxxxxxxxxxx.com/httpd.www/wp-content/plugins/bulletproof-security/admin/php/php-security-status.php
    --------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 8 WARNINGS AFFECTING 8 LINES
    --------------------------------------------------------------------------------------------------------------------------------
     173 | WARNING | INI directive 'asp_tags' is removed since PHP 7.0.
     186 | WARNING | INI directive 'allow_call_time_pass_reference' is deprecated since PHP 5.3 and removed since PHP 5.4.
     225 | WARNING | INI directive 'define_syslog_variables' is deprecated since PHP 5.3 and removed since PHP 5.4.
     290 | WARNING | INI directive 'magic_quotes_gpc' is deprecated since PHP 5.3 and removed since PHP 5.4.
     303 | WARNING | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
     342 | WARNING | INI directive 'register_globals' is deprecated since PHP 5.3 and removed since PHP 5.4.
     355 | WARNING | INI directive 'register_long_arrays' is deprecated since PHP 5.3 and removed since PHP 5.4.
     394 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    --------------------------------------------------------------------------------------------------------------------------------
    FILE: /customers/a/7/0/xxxxxxxxxxx.com/httpd.www/wp-content/plugins/bulletproof-security/includes/hud-dismiss-functions.php
    ---------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------------------
     145 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    ---------------------------------------------------------------------------------------------------------------------------------
    #32574
    AITpro Admin
    Keymaster

    BPS and BPS Pro are completely compatible with PHP7.  BPS is checking the same things as the PHP7  compatibility script and the compatibility script sees those BPS checks as errors, which of course is not correct/accurate.

    Disregard the system-info.php file error checks.  See explanation above.
    The tools.php file error check for the DB String Finder Pro-Tool is accurate and this has already been taken care of in BPS Pro 12.8.
    Disregard the php-options.php file error checks.  See explanation above.
    Disregard the php-security-status.php file error checks.  See explanation above.
    Disregard the hud-dismiss-functions.php file error checks.  See explanation above.

    #32575
    Chris Moon
    Participant

    Thanks for the reassurance.
    I knew BPS Pro was compatible with PHP 7 so couldn’t understand why I was getting these warnings and errors.

    #33217
    Immerse
    Participant

    [Topic has been merged into this relevant Topic]
    I’ve been thinking about moving my wordpress sites from php5.6 to php7 and today installed a little plugin from the repo (written by WPEngline) called PHP Compatibility Checker.

    Having disabled all things BPS – the compatability checker appeared to hang with it enabled – I got the checks done and it flagged the following warnings for BPS Pro. Not sure what they mean or what I’m supposed to do with them, but here they are:

    FILE: /home/xxx/public_html/wp-content/plugins/bulletproof-security/admin/system-info/system-info.php
    ----------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    ----------------------------------------------------------------------------------------------------------
    785 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    833 | WARNING | INI directive 'register_globals' is deprecated since PHP 5.3 and removed since PHP 5.4.
    860 | WARNING | INI directive 'magic_quotes_gpc' is deprecated since PHP 5.3 and removed since PHP 5.4.
    ----------------------------------------------------------------------------------------------------------
    
    FILE: /home/xxx/public_html/wp-content/plugins/bulletproof-security/admin/php/php-security-status.php
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 8 WARNINGS AFFECTING 8 LINES
    -----------------------------------------------------------------------------------------------------------------------
    162 | WARNING | INI directive 'asp_tags' is removed since PHP 7.0.
    175 | WARNING | INI directive 'allow_call_time_pass_reference' is deprecated since PHP 5.3 and removed since PHP 5.4.
    214 | WARNING | INI directive 'define_syslog_variables' is deprecated since PHP 5.3 and removed since PHP 5.4.
    279 | WARNING | INI directive 'magic_quotes_gpc' is deprecated since PHP 5.3 and removed since PHP 5.4.
    292 | WARNING | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
    331 | WARNING | INI directive 'register_globals' is deprecated since PHP 5.3 and removed since PHP 5.4.
    344 | WARNING | INI directive 'register_long_arrays' is deprecated since PHP 5.3 and removed since PHP 5.4.
    383 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    -----------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/xxx/public_html/wp-content/plugins/bulletproof-security/admin/php/php-options.php
    -----------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
    -----------------------------------------------------------------------------------------------------------------
    992 | WARNING | INI directive 'define_syslog_variables' is deprecated since PHP 5.3 and removed since PHP 5.4.
    996 | WARNING | INI directive 'define_syslog_variables' is deprecated since PHP 5.3 and removed since PHP 5.4.
    1100 | WARNING | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
    1104 | WARNING | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
    -----------------------------------------------------------------------------------------------------------------
    
    FILE: /home/xxx/public_html/wp-content/plugins/bulletproof-security/admin/tools/tools.php
    -----------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------
    1031 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    -----------------------------------------------------------------------------------------------
    
    FILE: /home/xxx/public_html/wp-content/plugins/bulletproof-security/includes/hud-dismiss-functions.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------
    142 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
    -----------------------------------------------------------------------------------------------------------

    Do any of these have any significance? I’m wary of going ahead and upgrading without knowing if all my plugins are safe to use.

    Thanks

    #33218
    Immerse
    Participant

    Sorry? My question was about BPS and PHP7 compatibility. I think someone posted a reply to a different question by mistake!

    Edit: Okay, now I can see that although prefaced by a ‘reply to…’ text, it’s actually standard text and not a reply. Ignore..!

    #33221
    AITpro Admin
    Keymaster

    BPS is compatible with PHP7.  See this Reply in this same Forum Topic for additional info:  https://forum.ait-pro.com/forums/topic/errors-when-testing-site-for-compatibility-with-php-7/#post-32574

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