Author |
Message |
CarpCharacin Board Member
Joined: 04 Sep 2016
Posts: 8
|
Posted: Mon Sep 05, 2016 7:41 pm Post subject: phpbb2 and php 7 |
|
|
Can it be done? |
|
Back to top |
|
|
Jim_UK Board Member
Joined: 19 Nov 2008
Posts: 656 Location: North West UK
|
Posted: Tue Sep 06, 2016 3:38 am Post subject: Re: phpbb2 and php 7 |
|
|
Are you on PHP7 and having problems?
Jim _________________ The truth is out there.
Unfortunately they will not let you anywhere near it! |
|
Back to top |
|
|
lumpy burgertushie Board Member
Joined: 18 Nov 2008
Posts: 266
|
Posted: Tue Sep 06, 2016 12:48 pm Post subject: Re: phpbb2 and php 7 |
|
|
of course, anything can be done.
however, I would assume that it would take a very involved rewrite of a lot of the code. It would be kind of like upgrading phpbb2 to phpbb3.2 by manually editing all of the code. |
|
Back to top |
|
|
Vendethiel Board Member
Joined: 26 Oct 2014
Posts: 251
|
Posted: Tue Sep 06, 2016 4:47 pm Post subject: Re: phpbb2 and php 7 |
|
|
I'd say it's mostly just changes to the DB class, and updating the old $_GET/$_POST variables (or aliasing them) _________________ Developer on EzArena, the ADR premod.
Developer on Icy Phoenix, the phpBB hybrid cms.
Developer on IntegraMOD, the full-featured premod.
Help me archive premods on github! (fixed for recent PHPs). |
|
Back to top |
|
|
ubrain Board Member
Joined: 02 Jul 2018
Posts: 1
|
Posted: Mon Jul 02, 2018 11:54 pm Post subject: Re: phpbb2 and php 7 |
|
|
Just off the top o' me head - you need to:
Convert Mysql to Mysqli
Comment out magic quotes
Replace ereg and split functions with Preg's
$$ variable variables in search.php need {} brackets to make paging work.
There are quite a few warnings to get through, tidying up stuff like uninitialised arrays.
admin_ug_auth is winding me up at the moment - anyone got a PHP7 fit version of it? |
|
Back to top |
|
|
JLA Board Member
Joined: 30 Apr 2009
Posts: 451 Location: U.S.A
|
Posted: Mon Jul 09, 2018 11:13 pm Post subject: Re: phpbb2 and php 7 |
|
|
What is the highest version of PHP that can be reasonably ran with PHPBB2 without too many changes? _________________ http://www.jlaforums.com |
|
Back to top |
|
|
StarWolf3000 Board Member
Joined: 10 Jun 2010
Posts: 175 Location: Germany
|
Posted: Tue Jul 10, 2018 1:41 am Post subject: Re: phpbb2 and php 7 |
|
|
JLA wrote: | What is the highest version of PHP that can be reasonably ran with PHPBB2 without too many changes? |
That would probably be PHP 5.2. |
|
Back to top |
|
|
Vendethiel Board Member
Joined: 26 Oct 2014
Posts: 251
|
Posted: Tue Jul 10, 2018 5:43 am Post subject: Re: phpbb2 and php 7 |
|
|
To be fair, making it php7.2 compatible isn't too hard. The hardest part if you are on mysql would be to find a mysqli db class. _________________ Developer on EzArena, the ADR premod.
Developer on Icy Phoenix, the phpBB hybrid cms.
Developer on IntegraMOD, the full-featured premod.
Help me archive premods on github! (fixed for recent PHPs). |
|
Back to top |
|
|
JLA Board Member
Joined: 30 Apr 2009
Posts: 451 Location: U.S.A
|
Posted: Tue Jul 10, 2018 10:32 am Post subject: Re: phpbb2 and php 7 |
|
|
StarWolf3000 wrote: | JLA wrote: | What is the highest version of PHP that can be reasonably ran with PHPBB2 without too many changes? |
That would probably be PHP 5.2. |
Thanks - that is what I suspected. What are the type of changes one is looking at to move up from 5.2? _________________ http://www.jlaforums.com |
|
Back to top |
|
|
|