This module uses the /e modifier on a preg_replace() call, which is not supported as of PHP 7. The area of code is in includes/coder_review.inc. Just search for "preg_replace".
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | custom-formatters-preg-replace-php7-compat-2947012-4.patch | 840 bytes | josephr5000 |
Comments
Comment #2
bkosborneComment #3
josephr5000 commentedI think the #2 patch might have a couple of errors:
1. There isn't an
$m[5]group. The intention (per the comment) is to adjust line numbering, so what's needed is$m[1](the line number) minus 5, or($m[1] - 5).2. I think
":$m[2]"is a typo. The intention is to render the $m[2] group, not the literal string"$m[2]", so":" . $m[2]will do that.Attaching #3 patch with these fixes.
Comment #4
josephr5000 commentedOops, typo in function signature. Patch #4 attached.