I am testing 2.0.18 on ubuntu 20.04 and php8 and it is looking fairly good. So far I came across some instances of "create_function" replacements that were missed.
I have 3 files that I've updated. I haven't submitted anything to the SMF github repo before.. is that the desired method to propose fixes?
For example:
Sources/Profile_Modify.php
Lines 183-186 should be replace with:
'input_validate' => function(&$value)
{
$value = $value != '' ? strtr($value, array(',' => '', '.' => '', ' ' => '')) : 0;
return true;
},
There should not be able create_function with the SMF 2.0.18 package. Unless the install failed to modify in some places or if modifications to SMF used create_function in their coding.
2.0.x is not on github to the public. You would open a request in the bug reports forum.
all of the instances that I found were due to older mods
Quote from: Kindred on February 04, 2021, 10:37:44 AM
all of the instances that I found were due to older mods
Good point.. thanks. I checked the SMF source and found no uses of create_function.
Though I suppose this topic might help others who want to move to php8 and have mods that are not updated yet.
I would post in any of mods topics here to let the mod authors to post an update.
Quote from: vbgamer45 on February 04, 2021, 10:55:33 AM
I would post in any of mods topics here to let the mod authors to post an update.
Good idea.. thanks!
Sorry to hijack the thread, but just wondering if 2.0.18 is working OK with PHP if you're not using any mods?
Quote from: Pogo Stick on February 10, 2021, 06:20:22 AM
Sorry to hijack the thread, but just wondering if 2.0.18 is working OK with PHP if you're not using any mods?
I mean PHP 8.
8)
It should work but not officially supported as of yet.