Title: PHP 7 Compatibility
Last modified: January 14, 2017

---

# PHP 7 Compatibility

 *  [joelwolfgang](https://wordpress.org/support/users/joelwolfgang/)
 * (@joelwolfgang)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-7-compatibility-109/)
 * First of all – I love your plugin! I’ve been using it for years on so many sites.
   Thank you for making such a versatile app for the community.
 * Recently, I was trying to upgrade many of my sites to a PHP 7 server and I found
   this really cool plugin that checks to make sure that my installs are PHP 7 compatible.
   And unfortunately, CF7-DB was not. Here is the raw output that it gave to me 
   discussing why it wasn’t. Do what you like with it, but I hope you can use it
   to help advance this plugin. Doesn’t look too bad.
 * Name: Contact Form DB
 * FILE: /nas/content/live/mdowns/wp-content/plugins/contact-form-7-to-database-
   extension/phpunit/WP_Mock_Functions.php
    ————————————————————————————————————————————
   FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ————————————————————————————————————————————
   48 | WARNING | Function name “__” is discouraged; PHP has reserved all method
   names with a double underscore prefix for future use ————————————————————————————————————————————
 * FILE: /nas/content/live/mdowns/wp-content/plugins/contact-form-7-to-database-
   extension/CFDBWpdbUnbufferedResultIterator.php
    —————————————————————————————————————————
   FOUND 6 ERRORS AFFECTING 6 LINES ————————————————————————————————————————— 72
   | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP
   7.0 – use mysqli instead. 74 | ERROR | Extension ‘mysql_’ is deprecated since
   PHP 5.5 and removed since PHP 7.0 – use mysqli instead. 97 | ERROR | Extension‘
   mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
   100 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since
   PHP 7.0 – use mysqli instead. 122 | ERROR | Extension ‘mysql_’ is deprecated 
   since PHP 5.5 and removed since PHP 7.0 – use mysqli instead. 124 | ERROR | Extension‘
   mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.—————————————————————————————————————————
 * FILE: /nas/content/live/mdowns/wp-content/plugins/contact-form-7-to-database-
   extension/CFDBQueryResultIterator.php
    ——————————————————————————————————————
   FOUND 13 ERRORS AFFECTING 13 LINES —————————————————————————————————————— 47 
   | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP
   7.0 – use mysqli instead. 59 | ERROR | Extension ‘mysql_’ is deprecated since
   PHP 5.5 and removed since PHP 7.0 – use mysqli instead. 85 | ERROR | Extension‘
   mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
   87 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since
   PHP 7.0 – use mysqli instead. 114 | ERROR | Extension ‘mysql_’ is deprecated 
   since PHP 5.5 and removed since PHP 7.0 – use mysqli instead. 121 | ERROR | Extension‘
   mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
   122 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since
   PHP 7.0 – use mysqli instead. 132 | ERROR | Extension ‘mysql_’ is deprecated 
   since PHP 5.5 and removed since PHP 7.0 – use mysqli instead. 136 | ERROR | Extension‘
   mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
   138 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since
   PHP 7.0 – use mysqli instead. 146 | ERROR | Extension ‘mysql_’ is deprecated 
   since PHP 5.5 and removed since PHP 7.0 – use mysqli instead. 150 | ERROR | Extension‘
   mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
   152 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since
   PHP 7.0 – use mysqli instead. ——————————————————————————————————————
 * Thanks and keep up the good work!!!!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-7-compatibility-109/#post-8654201)
 * [https://cfdbplugin.com/?p=1544](https://cfdbplugin.com/?p=1544)

Viewing 1 replies (of 1 total)

The topic ‘PHP 7 Compatibility’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-7-to-database-extension_ffffff.
   svg)
 * [Contact Form DB](https://wordpress.org/plugins/contact-form-7-to-database-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-to-database-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/php-7-compatibility-109/#post-8654201)
 * Status: not a support question