Title: Problems with PHP 7
Last modified: March 2, 2017

---

# Problems with PHP 7

 *  [lukescammell](https://wordpress.org/support/users/lukescammell/)
 * (@lukescammell)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/problems-with-php-7-2/)
 * Firstly, thank you for providing this plugin free of charge.
 * Unfortunately it seems to break with PHP7.
 *     ```
       FILE: /wp-content/plugins/email-before-download/download.php
       --------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------
        253 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
       --------------------------------------------------------------------------------------------------
       ```
   
 * The line in question from download.php is:
 * `$match[1] = preg_replace('/(?<=^|[\x09\x20\x2D])./e', 'strtoupper("\0")', strtolower(
   trim($match[1])));`
 * Please could the plugin be updated ASAP for PHP7 compatibility by the author?
 * Failing that, if anyone else knows how to correct this for PHP7 with a simple
   patch, I’d love to hear about it!
 * Thanks,
 * Luke
    -  This topic was modified 9 years, 4 months ago by [lukescammell](https://wordpress.org/support/users/lukescammell/).
      Reason: Stars rating was too high considering the issue!
    -  This topic was modified 9 years, 4 months ago by [lukescammell](https://wordpress.org/support/users/lukescammell/).
      Reason: Code line was copy and pasted incorrectly!
    -  This topic was modified 9 years, 3 months ago by [lukescammell](https://wordpress.org/support/users/lukescammell/).
      Reason: Politeness

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

 *  Plugin Author [mandsconsulting](https://wordpress.org/support/users/mandsconsulting/)
 * (@mandsconsulting)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problems-with-php-7-2/#post-8866090)
 * Thank you for the info [@lukescammell](https://wordpress.org/support/users/lukescammell/).
   And, of course, thank you [@foliovision](https://wordpress.org/support/users/foliovision/)
   for your support. We do indeed just provide the plugin for free since we originally
   thought it would be helpful to the community that has provided us WordPress for
   free. Thankfully, it does seem it has been helpful to many people. I hope you
   will consider updating your review when we update the plugin for PHP7 support,
   which we will plan to do as soon as we have some spare time to do so (within 
   the coming days hopefully).
 *  Plugin Author [mandsconsulting](https://wordpress.org/support/users/mandsconsulting/)
 * (@mandsconsulting)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/problems-with-php-7-2/#post-9067240)
 * Hi All,
 * Thank you again for your help and inputs. We have made the minor changes, tested
   in our PHP 7 environment, and released the update to the WordPress plugins repository.
   I hope the new version fixes any issues.
 *  Plugin Author [mandsconsulting](https://wordpress.org/support/users/mandsconsulting/)
 * (@mandsconsulting)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/problems-with-php-7-2/#post-9095483)
 * Hi [@lukescammell](https://wordpress.org/support/users/lukescammell/),
 * Just wanted to follow up here. Were you able to confirm if our release fixed 
   any issues experienced with PHP7? Please let us know if you found any others.

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

The topic ‘Problems with PHP 7’ is closed to new replies.

 * ![](https://ps.w.org/email-before-download/assets/icon-256x256.jpg?rev=1813522)
 * [Email Before Download](https://wordpress.org/plugins/email-before-download/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-before-download/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-before-download/)
 * [Active Topics](https://wordpress.org/support/plugin/email-before-download/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-before-download/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-before-download/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [mandsconsulting](https://wordpress.org/support/users/mandsconsulting/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/problems-with-php-7-2/#post-9095483)