-
Bug
-
Resolution: Fixed
-
Major
-
3.2.0-dev
-
None
The current custom bbcode system that is used in acp_bbcodes and the message parser uses the /e modifier with preg_replace. This is no longer supported in PHP7.
Since the regex for the custom bbcodes is generated and saved in the database, one cannot simply use anonymous functions for getting rid of the /e modifier. We'll have to modify the creation of the regex to run upon parsing the code instead of while creating the bbcode. Only then we'll be able to replace the occurences of the /e modifier with preg_replace_callback().
We might want to use a token based system for that.
- is duplicated by
-
PHPBB-13746 Creating BBCodes in PHP 7 will Fail because of e modifier
- Closed
-
PHPBB-13932 preg_replace(): The /e modifier is no longer supported in php7
- Closed
- is related to
-
PHPBB-13832 Replace use of deprecated e modifier of preg_replace in bbcode functions
- Unverified Fix