Title: Doesn&#039;t work with PHP 7
Last modified: August 30, 2016

---

# Doesn't work with PHP 7

 *  [keithslater](https://wordpress.org/support/users/keithslater/)
 * (@keithslater)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/doesnt-work-with-php-7/)
 * I don’t think you should be able to say that this plugin works with WordPress
   4.4 since WordPress 4.4 supports PHP 7 but this plugin doesn’t.
 * In order for it to support PHP 7 you would need to replace mysql_ functions with
   mysqli_ or PDO.
 * [https://wordpress.org/plugins/bad-behavior/](https://wordpress.org/plugins/bad-behavior/)

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

 *  [Skooter](https://wordpress.org/support/users/fbreve/)
 * (@fbreve)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/doesnt-work-with-php-7/#post-6896518)
 * So, is this the reason I am getting Error 403 when both “Bad Behavior” and PHP7
   are activated together?
 *  [leemon](https://wordpress.org/support/users/leemon/)
 * (@leemon)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/doesnt-work-with-php-7/#post-6896567)
 * I’m having the same problem.
 *  [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/doesnt-work-with-php-7/#post-8193942)
 * I also scanned the plugin for PHP7 compatibility (with [https://wpengine.com/blog/php-7-compatibility-checker-plugin/](https://wpengine.com/blog/php-7-compatibility-checker-plugin/))
   and found the following issue:
 *     ```
       FILE: /wp-content/plugins/bad-behavior/bad-behavior/blacklist.inc.php
       -------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       -------------------------------------------------------------------------------------------------------------------------------------------------------------------
        145 | ERROR | The behaviour of hexadecimal numeric strings was inconsistent prior to PHP 7 and support has been removed in PHP 7. Found: "0x31303235343830303536"
       -------------------------------------------------------------------------------------------------------------------------------------------------------------------
       ```
   
 * Would be great if this could be fixed with the next release…
 *  [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/doesnt-work-with-php-7/#post-8193949)
 * (on the other hand I am not quite sure if this is a real issue for PHP7)

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

The topic ‘Doesn't work with PHP 7’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bad-behavior.svg)
 * [Bad Behavior](https://wordpress.org/plugins/bad-behavior/)
 * [Support Threads](https://wordpress.org/support/plugin/bad-behavior/)
 * [Active Topics](https://wordpress.org/support/plugin/bad-behavior/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bad-behavior/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bad-behavior/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/doesnt-work-with-php-7/#post-8193949)
 * Status: not resolved