Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: @rjen on September 20, 2022, 08:45:15 AM

Title: undefined function create_function() in fix_packages.php
Post by: @rjen on September 20, 2022, 08:45:15 AM
Today I tried to use the fix_packages.php tool on a PHP8.1 environment...

I failed miserably with this error:

Fatal error: Uncaught Error: Call to undefined function create_function() in C:\xampp\htdocs\vanilla\fix_packages.php:188 Stack trace: #0 C:\xampp\htdocs\vanilla\fix_packages.php(64): fixp_main() #1 {main} thrown in C:\xampp\htdocs\vanilla\fix_packages.php on line 188

It seems the tool should be brought up to date to work with PHP8.1?
Title: Re: undefined function create_function() in fix_packages.php
Post by: Diego Andrés on September 21, 2022, 07:52:41 PM
There's a PR in the limbo: https://github.com/SimpleMachines/tools/pull/63
So I'll move to the other board and hopefully fixed soon.