Problems with PHP 7
-
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
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Problems with PHP 7’ is closed to new replies.