Wrong error (preg_replace() – /e modifier is forbidden since PHP 7.0)
-
Hi there,
When running the PHP compatibility checker, we are receiving an error for the Cache Enabler plugin which says “1328 | ERROR | preg_replace() – /e modifier is forbidden since PHP 7.0” however this seems to be a mistake as the line in question shows the following:
$cleaned = preg_replace( array( '/<!--[^\[><](.*?)-->/s', '#(?ix)(?>[^\S ]\s*|\s{2,})(?=(?:(?:[^<]++|<(?!/?(?:textarea|pre)\b))*+)(?:<(?>textarea|pre)\b|\z))#' ), array( '', ' ' ), $data );
which works fine in PHP7 and does not use the /e modifier.
Can you please take a look?
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Wrong error (preg_replace() – /e modifier is forbidden since PHP 7.0)’ is closed to new replies.