php5.6/php7 compatibility + memleak fix

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

Bueddl
speedy pilot
speedy pilot
Posts: 458
Joined: 05 Apr 2008 12:37
Owned TM-games: TMO, TMS, TMU/N(F)
Location: Germany
Contact:

Re: php5.6/php7 compatibility + memleak fix

Post by Bueddl » 14 Feb 2017 00:00

Hi!

Glad to see, that changes are trickling down by time :-) The exact steps depend on what you want to archive.
If you only want to fix the memleak, you can go with the files I provided. I updated them and removed the GBX Data Fetcher as Xymph already merged the changes to version 2.9 which has been released recently (see update notice https://ftp.bueddl.de/tm/php7_patches/). It is better to obtain them from the original upstream source :-)

Second is, you'll have to deal with the removal of the old-style mysql API. Changes are described above and on the tiny site I put on the web. If you want a minimal effort solution, go with reabys plugin. Otherwise I suggest to perform the replacement of the procedural API with the object orientated one.

Cheers,

Bueddl

NoTimeToDrive
wheelbarrow operator
wheelbarrow operator
Posts: 21
Joined: 31 Mar 2013 15:13
Owned TM-games: TMU TMUF

Re: php5.6/php7 compatibility + memleak fix

Post by NoTimeToDrive » 16 Feb 2017 18:35

Hey Bueddl

Thanks a lot for your info!!
This weekend I will try.
Now Server is most time busy.
And if there are problems,
I have more time to check.
During the week I'm too busy with work.

Server name: PlaneTMX FunTime!!!

Thanks a lot again ;-)

===============================
EDIT:21-2-2017

Hey.

I add/replace the new file's.
And so far...I don't see any problems.
Server runs oke.

Thanks ;-)
===============================
Greetings Ed

Bueddl
speedy pilot
speedy pilot
Posts: 458
Joined: 05 Apr 2008 12:37
Owned TM-games: TMO, TMS, TMU/N(F)
Location: Germany
Contact:

Re: php5.6/php7 compatibility + memleak fix

Post by Bueddl » 25 Feb 2017 13:41

NoTimeToDrive wrote: I add/replace the new file's.
And so far...I don't see any problems.
Glad to hear that :-)

grtace
highway camper
highway camper
Posts: 1
Joined: 10 Feb 2014 20:29
Owned TM-games: tmu
Location: Germany
Contact:

Re: php5.6/php7 compatibility + memleak fix

Post by grtace » 21 Apr 2018 23:58

Hi guys, i get this error while using the modernizer tool, can you help me?

Code: Select all

PHP Fatal error:  Uncaught Error: Call to undefined function mysql_db_query() in /home/Train/xaseco/plugins/fufi.tools.php:790
Stack trace:
#0 /home/Train/xaseco/plugins/fufi.tools.php(775): createToolsTableIfNotExisting('tools_messages', 'CREATE TABLE to...')
#1 /home/Train/xaseco/plugins/fufi.tools.php(626): toolsTableCheck()
#2 /home/Train/xaseco/aseco.php(1251): displayWelcomeMessage(Object(Aseco), Object(Player))
#3 /home/Train/xaseco/aseco.php(1829): Aseco->releaseEvent('onPlayerConnect', Object(Player))
#4 /home/Train/xaseco/aseco.php(959): Aseco->playerConnect(Array)
#5 /home/Train/xaseco/aseco.php(737): Aseco->serverSync()
#6 /home/Train/xaseco/aseco.php(2564): Aseco->run('config.xml')
#7 {main}
  thrown in /home/Train/xaseco/plugins/fufi.tools.php on line 790

Post Reply