Title: php 7 Bug
Last modified: March 12, 2017

---

# php 7 Bug

 *  [RS-Systems](https://wordpress.org/support/users/rs-systems/)
 * (@rs-systems)
 * [9 years ago](https://wordpress.org/support/topic/php-7-bug-2/)
 * Hi, using the plugin under php7 give the following
 * Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback
   instead
 * Its line 30. You need to modify the line to
 *     ```
       function wpFlashInsertSwf($content) {
       	return preg_replace_callback("'\[swf:(.*?)\]'", function($subs){ return stripslashes(wpFlashParseMacro($subs[1]));}, $content);
       }
       ```
   
 * Greetings RS

The topic ‘php 7 Bug’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-flash_81504a.svg)
 * [WP Flash & Ruffle](https://wordpress.org/plugins/wp-flash/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-flash/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-flash/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-flash/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-flash/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-flash/reviews/)

## Tags

 * [embed](https://wordpress.org/support/topic-tag/embed/)
 * [flash](https://wordpress.org/support/topic-tag/flash/)

 * 0 replies
 * 1 participant
 * Last reply from: [RS-Systems](https://wordpress.org/support/users/rs-systems/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/php-7-bug-2/)
 * Status: not resolved