Title: PHP7 compatibility
Last modified: November 4, 2016

---

# PHP7 compatibility

 *  [Andy Keith](https://wordpress.org/support/users/andykeith/)
 * (@andykeith)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php7-compatibility-46/)
 * Hi,
 * We’re planning to upgrade to PHP7 soon. I’ve run the PHP Compatibility Checker
   on your plugin and it’s showing a couple of errors. Is there any chance you could
   fix these in a future release?
 * FILE: /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: /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: /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 in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php7-compatibility-46/#post-8395925)
 * [http://cfdbplugin.com/?p=1544](http://cfdbplugin.com/?p=1544)
 *  Thread Starter [Andy Keith](https://wordpress.org/support/users/andykeith/)
 * (@andykeith)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php7-compatibility-46/#post-8469566)
 * Thanks, feel free to close ticket.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP7 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/)

## Tags

 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 2 replies
 * 2 participants
 * Last reply from: [Andy Keith](https://wordpress.org/support/users/andykeith/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/php7-compatibility-46/#post-8469566)
 * Status: not resolved