MyBB Community Forums

Full Version: Problem with PHP-BBCode under PHP8.3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
After I updated to 1.8.38, I saw that my forum had a problem when using the PHP BBCode.
At first I attributed it to the update, but that was then ruled out.
I also have the problem in a fresh MyBB with standard style and without plugins

But, the problem only occurs when using PHP 8.3
In the output, a <?php is then inserted in front of what you wanted to post, see screenshot
Looks like changes in the highlighting functions https://php.watch/versions/8.3/highlight...ml-changes will need to be applied to https://github.com/mybb/mybb/blob/mybb_1....php#L1080 (possibly with a PHP version check).