Title: PHP7 compatibility
Last modified: January 2, 2017

---

# PHP7 compatibility

 *  [eehmke](https://wordpress.org/support/users/eehmke/)
 * (@eehmke)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php7-compatibility-67/)
 * I have installed PHP 7.0. When I run the PHP compatibility plugin, it complains
   about empty files:
 *     ```
       wp-content/plugins/better-wp-security/core/img/index.php
       wp-content/plugins/better-wp-security/index.php
       wp-content/plugins/better-wp-security/lib/index.php
       (No PHP code was found in this file)
       ```
   
 * This can be easily avoided by including empty php statements into these files:
 *     ```
       <?php
       ?>
       ```
   
    -  This topic was modified 9 years, 5 months ago by [eehmke](https://wordpress.org/support/users/eehmke/).

The topic ‘PHP7 compatibility’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [eehmke](https://wordpress.org/support/users/eehmke/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/php7-compatibility-67/)
 * Status: not resolved