Phillip

  • Posts: 0
Test
«  »
Testing to see how all this works and see what is different.

Kian

  • Posts: 51
Re: Test
« Reply #1,  »
Quote from Phillip on January 31st, 12:03 PM
Testing to see how all this works and see what is different.
It works :yobrother:

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Test
« Reply #2,  »
It's not working well on PHP 7.4+, though. Plenty of issues with create_function being deprecated (then removed in PHP 8).
Heck, it's better to have it removed entirely, since at least I can substitute a replacement create_function() in for the original one, but in 7.4 I got so many warnings (thanks to calls in Subs-Template.php) that it was overwhelming.
Anyway, I'll fix these, but I don't know if anyone is still using Wedge, and thus would need the fix... I noticed you switched to Elk at one point Kian, was it due to that? You know, you could have written :-P (Ideally, on Discord at @Naolog, I'm still very much available there.)
(I see I got 9 PMs here... Oops! Probably from you :lol:)

Kian

  • Posts: 51
Re: Test
« Reply #3,  »
Quote from Nao on February 15th, 09:02 PM
It's not working well on PHP 7.4+, though. Plenty of issues with create_function being deprecated (then removed in PHP 8).
Heck, it's better to have it removed entirely, since at least I can substitute a replacement create_function() in for the original one, but in 7.4 I got so many warnings (thanks to calls in Subs-Template.php) that it was overwhelming.
Anyway, I'll fix these, but I don't know if anyone is still using Wedge, and thus would need the fix... I noticed you switched to Elk at one point Kian, was it due to that? You know, you could have written :-P (Ideally, on Discord at @Naolog, I'm still very much available there.)
(I see I got 9 PMs here... Oops! Probably from you :lol:)
Well, I needed to have an up to date OS+middleware stack, and PHP has been EOL for about 2 years now. With the Elkarte migration I did a few months ago, I was able to upgrade Debian without any annoying backports. (FYI it's not possible to migrate out of the box from Wedge to Elkarte 1.1, there are no scripts. But it's possible by adding an intermediate Elkarte 1.0 migration step)

I'm now on the latest Debian with the latest PHP version, PHP 8.4.

I figured you now had better things to do and did not want to bother you :)

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Test
« Reply #4,  »
Well, you really could bother to contact me. (C'est parce que tu me dois encore des sous hein, c'est ça ? :-P)

Currently I have a working version of Lestrades.com that runs PHP 8.x (on my beta server). It's really no big deal.
I effectively added @ in front of all strftime() calls (could have done it with a global search & replace, really.)
The rest was easy to fix, mostly.

I believe it's entirely PHP 8.4 compatible. But not the github version.
When PHP 9 gets released, we'll be able to simply replace strftime() with a custom version (it's already in my code, ready to be 'deployed' if the instruction suddenly disappears.)

To be honest, though, I was surprised by the amount of refactoring needed between PHP 7.0 and 8.4. I believe it's a lot more than between 5 and 7. Although they did skip version 6... And 7 lasted for a while!