Page 1 of 1

PHP7 compatibility with phpBB 3.1.x

Posted: Sat Sep 24, 2016 7:34 pm
by kc9uhi
long story short: not compatible.

I upgraded the server a bit ago, which included an auto-update to php7. Didn't auto-update all the modules, extensions, etc. I think I got all of them back in.

phpBB v3.1.x (which this forum runs on) isn't directly compatible with php7. Specifically, the mysql extension is now gone (switched to mysqli), and regex callback functions split to a separate php function (preg_replace_callback), rather than just the /e modifier in preg_replace. This broke bbcode functionality, amongst other things. I think I got things fixed up enough to keep working for now.

I'd update to the 3.2 release candidate (which supports php7), but the forum style hasn't been updated for 3.2 yet. So, until then, if something doesn't work please let me know and I'll try to patch it for the time being.

Re: PHP7 compatibility with phpBB 3.1.x

Posted: Tue Sep 27, 2016 12:34 am
by kb9mwr
Could be worse.... could be cpan hell.

Re: PHP7 compatibility with phpBB 3.1.x

Posted: Mon Jan 09, 2017 12:33 pm
by kc9uhi
Upgraded to phpBB 3.2. Everything seems to be normal and functional.