• Resolved MKSnMKS

    (@mksnmks)


    A check for compatibility with PHP 7.0 using the “PHP Compatibility Checker” plugin,
    reports the following errors and warnings.

    FILE: /home/sitename/public_html/wp-content/plugins/worker/src/MMB/Backup.php
    —————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    —————————————————————————————————————
    4277 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    —————————————————————————————————————

    FILE: /home/sitename/public_html/wp-content/plugins/worker/src/PHPSecLib/Crypt/Random.php
    ———————————————————————————————————————————
    FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 2 LINES
    ———————————————————————————————————————————
    75 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    75 | WARNING | Function mcrypt_create_iv() is deprecated since PHP 7.1; use OpenSSL instead
    114 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    114 | WARNING | Function mcrypt_create_iv() is deprecated since PHP 7.1; use OpenSSL instead
    ———————————————————————————————————————————

    FILE: /home/sitename/public_html/wp-content/plugins/worker/src/PHPSecLib/Crypt/Rijndael.php
    ———————————————————————————————————————————
    FOUND 0 ERRORS AND 8 WARNINGS AFFECTING 4 LINES
    ———————————————————————————————————————————
    811 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    811 | WARNING | Function mcrypt_list_algorithms() is deprecated since PHP 7.1; use OpenSSL instead
    830 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    830 | WARNING | Function mcrypt_module_close() is deprecated since PHP 7.1; use OpenSSL instead
    831 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    831 | WARNING | Function mcrypt_module_close() is deprecated since PHP 7.1; use OpenSSL instead
    836 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    836 | WARNING | Function mcrypt_module_close() is deprecated since PHP 7.1; use OpenSSL instead
    ———————————————————————————————————————————

    FILE: /home/sitename/public_html/wp-content/plugins/worker/src/PHPSecLib/Crypt/Base.php
    ———————————————————————————————————————————-
    FOUND 0 ERRORS AND 33 WARNINGS AFFECTING 17 LINES
    ———————————————————————————————————————————-
    454 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    454 | WARNING | Function mcrypt_list_algorithms() is deprecated since PHP 7.1; use OpenSSL instead
    671 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    671 | WARNING | Function mcrypt_generic_init() is deprecated since PHP 7.1; use OpenSSL instead
    704 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    704 | WARNING | Function mcrypt_generic_init() is deprecated since PHP 7.1; use OpenSSL instead
    707 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    707 | WARNING | Function mcrypt_generic() is deprecated since PHP 7.1; use OpenSSL instead
    712 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    712 | WARNING | Function mcrypt_generic() is deprecated since PHP 7.1; use OpenSSL instead
    721 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    721 | WARNING | Function mcrypt_generic() is deprecated since PHP 7.1; use OpenSSL instead
    735 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    735 | WARNING | Function mcrypt_generic() is deprecated since PHP 7.1; use OpenSSL instead
    738 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    738 | WARNING | Function mcrypt_generic_init() is deprecated since PHP 7.1; use OpenSSL instead
    903 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    903 | WARNING | Function mcrypt_generic_init() is deprecated since PHP 7.1; use OpenSSL instead
    931 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    931 | WARNING | Function mcrypt_generic() is deprecated since PHP 7.1; use OpenSSL instead
    936 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    936 | WARNING | Function mcrypt_generic() is deprecated since PHP 7.1; use OpenSSL instead
    951 | WARNING | Function mdecrypt_generic() is deprecated since PHP 7.1; use OpenSSL instead
    954 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    954 | WARNING | Function mcrypt_generic_init() is deprecated since PHP 7.1; use OpenSSL instead
    1320 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    1320 | WARNING | Function mcrypt_module_open() is deprecated since PHP 7.1; use OpenSSL instead
    1321 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    1321 | WARNING | Function mcrypt_module_open() is deprecated since PHP 7.1; use OpenSSL instead
    1327 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    1327 | WARNING | Function mcrypt_module_open() is deprecated since PHP 7.1; use OpenSSL instead
    1332 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    1332 | WARNING | Function mcrypt_generic_init() is deprecated since PHP 7.1; use OpenSSL instead
    ———————————————————————————————————————————-

    FILE: /home/sitename/public_html/wp-content/plugins/worker/src/MWP/Backup/MysqlDump/DumpFactory.php
    —————————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    —————————————————————————————————
    56 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4.
    —————————————————————————————————

    FILE: /home/sitename/public_html/wp-content/plugins/worker/src/MWP/IncrementalBackup/Database/MysqlConnection.php
    —————————————————————————————————————–
    FOUND 11 ERRORS AFFECTING 9 LINES
    —————————————————————————————————————–
    33 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    39 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    43 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    43 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    46 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    47 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    56 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    58 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    62 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    62 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    75 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    —————————————————————————————————————–

    FILE: /home/sitename/public_html/wp-content/plugins/worker/src/MWP/IncrementalBackup/Database/MysqlStatement.php
    —————————————————————————————————————-
    FOUND 2 ERRORS AFFECTING 2 LINES
    —————————————————————————————————————-
    29 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    56 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    —————————————————————————————————————-

    FILE: /home/sitename/public_html/wp-content/plugins/worker/src/Dropbox/Security.php
    ——————————————————————————————————————————–
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
    ——————————————————————————————————————————–
    64 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1 – use openssl (preferred) or pecl/mcrypt once available instead.
    64 | WARNING | Function mcrypt_create_iv() is deprecated since PHP 7.1; use OpenSSL instead
    ——————————————————————————————————————————–

    FILE: /home/sitename/public_html/wp-content/plugins/worker/src/S3/Request.php
    ———————————————————————————————————————————————————————
    FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
    ———————————————————————————————————————————————————————
    423 | WARNING | Method name “S3_Request::__sortMetaHeadersCmp” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    447 | WARNING | Method name “S3_Request::__responseWriteCallback” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    465 | WARNING | Method name “S3_Request::__dnsBucketName” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    494 | WARNING | Method name “S3_Request::__responseHeaderCallback” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ———————————————————————————————————————————————————————

    FILE: /home/sitename/public_html/wp-content/plugins/worker/src/S3/Client.php
    ———————————————————————————————————————————————————————————
    FOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
    ———————————————————————————————————————————————————————————
    395 | WARNING | Method name “S3_Client::__triggerError” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1660 | WARNING | Method name “S3_Client::__getCloudFrontInvalidationBatchXML” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1743 | WARNING | Method name “S3_Client::__getCloudFrontDistributionConfigXML” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1785 | WARNING | Method name “S3_Client::__parseCloudFrontDistributionConfig” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1844 | WARNING | Method name “S3_Client::__getCloudFrontResponse” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1878 | WARNING | Method name “S3_Client::__getMIMEType” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1925 | WARNING | Method name “S3_Client::__getTime” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1955 | WARNING | Method name “S3_Client::__getSignature” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1971 | WARNING | Method name “S3_Client::__getHash” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ———————————————————————————————————————————————————————————

    FILE: /home/sitename/public_html/wp-content/plugins/worker/functions.php
    ————————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ————————————————————————————————–
    402 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4.
    ————————————————————————————————–

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there!

    ManageWP is fully PHP7 compliant. The errors listed here are reporting the lines of code that we intentionally keep in there to keep the plugin backward compatible. The PHP Compatibility Plugin can only see if there’s a particular line of code in there or not, it’s not capable of deducing how it’s being used.

    In summary, everything is in order, no need to worry.

    Cheers!
    Nemanja

    Thread Starter MKSnMKS

    (@mksnmks)

    Thanks for that.
    I’ll let them know.

    Just a thought.
    Is there a way of detecting that backward compatibility is the reason why older code methods are used, such as the type of code that would be used to detect the PHP version?

    If you can paste the snippet of code that you use to do that, then I will let them know that too.

    If they build a search for that code sequence in to their scanner, then if that shows up in the scan, then they may report that the code appears to be maintaining backwards compatibility.

    Another important snippet of code, might be the methods for the start and end of older version code, so that the scanner can use that for checking compatibility with older versions, and newer versions.

    No worries, if you haven’t got the time to do that.
    But anyway, thanks for the confirmation.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP7 Compatibility – possible issues to be fixed – ManageWP – Worker’ is closed to new replies.