Page 1 of 1

Rewriting XASECO for PHP 7 Compatibility

Posted: 31 Oct 2017 20:26
by YellowberryHN
So hi guys, I'm Yellowberry. I'm pretty new in the community. So what I am currently working on is rewriting XASECO to not use the deprecated PHP 5 functions (such as the 'mysql_' functions) and to be PHP 7+ only. Now I understand that not everyone will like that, however I started doing it out of personal need. I have a server that has PHP 7 pre-installed and I was unable to use XASECO unfortunately because it is incompatible with PHP 7.

So, I guess what I am trying to say is stay tuned(?) for more info and a release eventually. Also, make me feel stupid if someone else already did this. I looked everywhere I could think of and couldn't find anything.

Let me know if there are any bugs in XASECO 1.16 that I should fix in the mean time.

Hope to be a big help in the community from now on,
Yellowberry

Re: Rewriting XASECO for PHP 7 Compatibility

Posted: 01 Nov 2017 17:15
by weasel
Welcome.

Wow , that sounds like a lot of work.
There are already some fix ( patches ) so xaseco will work with php 7 if I'm right.
They should be here on the forum.

Anyway goodluck with coding.

Re: Rewriting XASECO for PHP 7 Compatibility

Posted: 01 Nov 2017 22:24
by undef.de
viewtopic.php?f=127&t=35817 works also with XAseco.

Re: Rewriting XASECO for PHP 7 Compatibility

Posted: 02 Nov 2017 12:12
by YellowberryHN
undef.de wrote:
01 Nov 2017 22:24
viewtopic.php?f=127&t=35817 works also with XAseco.
I tried that...

Code: Select all

[11/02,12:01:10] Connection established successfully !
[11/02,12:01:10] [LocalDB] Load config file [localdatabase.xml]
[11/02,12:01:10] [LocalDB] Try to connect to MySQL server on 'localhost' with database 'aseco'
[PHP Warning] mysqli_select_db() expects parameter 2 to be string, object given on line 21 in file /home/tmf/xaseco/includes/modernizer.inc.php
[XASECO Fatal Error] [LocalDB] Could not find MySQL database! on line 82 in file /home/tmf/xaseco/plugins/plugin.localdatabase.php
Didn't work out too swell... Unless I did something wrong, I don't think it's working.

Re: Rewriting XASECO for PHP 7 Compatibility

Posted: 02 Nov 2017 19:39
by YellowberryHN
Alright, I just finished replacing all of the old mysql_ calls with mysqli_ calls in everything, including plugins, lets see if this works...

Will edit post with results.