Title: PHP7 compatibility
Last modified: August 31, 2016

---

# PHP7 compatibility

 *  [Robert](https://wordpress.org/support/users/e2robert/)
 * (@e2robert)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php7-compatibility-12/)
 * I was running PHP7 compatibility checks on my WordPress projects and there was
   one issue with your plugin:
 *     ```
       File: wp-content/plugins/exploit-scanner/exploit-scanner.php
       > Line 960: PHP 4 constructors are now deprecated
           function ES_Text_Diff_Renderer()
           {
           }
       ```
   
 * I think you should just add a PHP5-style constructor to the `ES_Text_Diff_Renderer`
   class:
 *     ```
       class ES_Text_Diff_Renderer extends Text_Diff_Renderer {
   
       	function __construct() {
       		parent::__construct();
       	}
   
       	/**
       	 * PHP4 constructor.
       	 */
       	function ES_Text_Diff_Renderer() {
       		self::__construct();
       	}
       ```
   
 * [https://wordpress.org/plugins/exploit-scanner/](https://wordpress.org/plugins/exploit-scanner/)

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

 *  [slushman](https://wordpress.org/support/users/slushman/)
 * (@slushman)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php7-compatibility-12/#post-6903947)
 * I’m seeing the same errors. Is there a github repo for this plugin so others 
   can submit pull requests and such? That could help speed up submitting new hash
   files as well.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php7-compatibility-12/#post-6903948)
 * **[@slushman](https://wordpress.org/support/users/slushman/)**: This is not your
   topic and it is 5 months old. As per the [Forum Welcome](https://codex.wordpress.org/Forum_Welcome#Where_To_Post),
   please post your question in your own topic.
 *  [Chris](https://wordpress.org/support/users/web2guru/)
 * (@web2guru)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php7-compatibility-12/#post-8161472)
 * [@e2robert](https://wordpress.org/support/users/e2robert/): I know this is an
   old post, but your the only one who’s posted a possible solution. Is that all
   the code that is needed? If so, as much as I don’t want to edit the plugin code,
   I think I can manage a change like that. Can you confirm if you tried the code
   you posted and if the plugin still functioned properly? Otherwise I may just 
   have to try it myself and see how it turns out.
 *  [slushman](https://wordpress.org/support/users/slushman/)
 * (@slushman)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php7-compatibility-12/#post-8164179)
 * [@web2guru](https://wordpress.org/support/users/web2guru/) This is the same code
   change I’ve been using as well and yes it resolves the PHP7 warnings. It does
   not affect the plugin’s operation.
 *  Thread Starter [Robert](https://wordpress.org/support/users/e2robert/)
 * (@e2robert)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php7-compatibility-12/#post-8172095)
 * Yep, the code worked for me and what is the best test: it also worked for [@slushman](https://wordpress.org/support/users/slushman/)

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/exploit-scanner.svg)
 * [Exploit Scanner](https://wordpress.org/plugins/exploit-scanner/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/exploit-scanner/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/exploit-scanner/)
 * [Active Topics](https://wordpress.org/support/plugin/exploit-scanner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/exploit-scanner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/exploit-scanner/reviews/)

## Tags

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

 * 5 replies
 * 4 participants
 * Last reply from: [Robert](https://wordpress.org/support/users/e2robert/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/php7-compatibility-12/#post-8172095)
 * Status: not resolved