• The SiteGround plugin has a way to check for PHP7.x compatability. When it scanned the version 2.10.36 of the CF7Database plugin, this message showed up:

    
    FILE: wp-content/plugins/contact-form-7-to-database-extension/CFDBDeobfuscate.php
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
     43 | WARNING | Extension 'mcrypt' is deprecated since PHP 7.1 - use openssl (preferred) or pecl/mcrypt once available instead.
     43 | WARNING | Function mcrypt_decrypt() is deprecated since PHP 7.1; use OpenSSL instead
    -------------------------------------
    

    So is this something to be fixed? I know some plugins have alternate if/then for PHP 5.x vs 7.x and maybe you are doing something like that, and the scanner is creating a false positive?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I would be interested in this as well, because so far it′ts kept me from updating to PHP 7.1. Thanks!

    I have tested it using local by flywheel and is working fine with php 7.1.7. But live website is using 5.6.36

    CFDB is compatible with PHP 7
    September 21st, 2016Michael SimpsonNo comments
    If running a scanning tool, it may report Errors for deprecated code.
    72 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and deprecated since PHP 5.6 and removed since PHP 7.0 – use mysqli instead.

    The code contains both the new “mysqli” and old “mysql_” for both new and old versions of PHP. The old code is not run under PHP 7.

    The following is unit test code that is not run on your site. This is a “mock” version of an existing WP function. You can blame WP for the name.
    48 | WARNING | Function name “__” is discouraged; PHP has reserved all method names with a double underscore prefix for future use

    https://cfdbplugin.com/?p=1544

    Thanks for the feedback! @alaguna

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Is it compatible with PHP 7.1?’ is closed to new replies.