Title: BUG
Last modified: October 3, 2016

---

# BUG

 *  Resolved [Kimberly](https://wordpress.org/support/users/amiga500/)
 * (@amiga500)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/bug-56/)
 * Here’s how to duplicate the bug:
 *     ```
       function testme()
       {
       	return "foo bar";
       }
   
       preg_replace('~'.testme()."~s", '', "foo bar was here");
       ```
   
 * This results in the error: _**preg\_replace() – /e modifier is forbidden since
   PHP 7.**_

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Jason Stallings](https://wordpress.org/support/users/octalmage/)
 * (@octalmage)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/bug-56/#post-8284561)
 * Hi Kimberly,
 * Thanks for reporting this and helping to get it resolved.
 * [https://github.com/wimg/PHPCompatibility/pull/266](https://github.com/wimg/PHPCompatibility/pull/266)

Viewing 1 replies (of 1 total)

The topic ‘BUG’ is closed to new replies.

 * ![](https://ps.w.org/php-compatibility-checker/assets/icon-256x256.png?rev=1446087)
 * [PHP Compatibility Checker](https://wordpress.org/plugins/php-compatibility-checker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-compatibility-checker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-compatibility-checker/)
 * [Active Topics](https://wordpress.org/support/plugin/php-compatibility-checker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-compatibility-checker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-compatibility-checker/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jason Stallings](https://wordpress.org/support/users/octalmage/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/bug-56/#post-8284561)
 * Status: resolved