01461: PHP 8
Description: PHP 8 has made a number of breaking changes, so code that previously worked fine now needs to be rewritten.
On this page we keep track of the work done and pending to update the core codebase for PHP 8.
Please add new reports below this line.
is set I get warnings like the following on pages which contains CamelCase words:
$LinkWikiWords = 1;
Warning: Undefined array key "EximCfgMain" in /home/www/pmwiki/scripts/wikiwords.php on line 66
Click to toggle past issues
Under php 8.0 pmwiki enters in infinite loop. It's because of change of comparing rules in php 8.0.
In pmwiki.php (line 1580) instead of
if ($depth == 0) $depth = strlen($depth); if ($icol == 0) $icol = strlen($icol);
if (!is_numeric($depth)) $depth = strlen($depth); if (!is_numeric($icol)) $icol = strlen($icol);
Made this change manually on my system as php 8 just dropped on Arch linux. pmwiki works with these changes...
well - the pages render and load (which they didn't before) - but editing still doesn't work. Uncaught TypeError: Unsupported operand types int & arry line 2182 of pmwiki.php. Probably several more things to fix for the new version of PHP.
What a blessing to have you.
MFWolff January 29, 2021, at 07:08 AM
All the above, and a few I found myself, were fixed. If there are any others, please report them in the "Pending issues" section. --Petko January 31, 2021, at 05:19 PM