snappymail icon indicating copy to clipboard operation
snappymail copied to clipboard

Drop support PHP 7.4 and/or 8.0 ?

Open the-djmaze opened this issue 11 months ago • 12 comments

7.4 security support ended 28 Nov 2022 8.0 security support ended 26 Nov 2023

By only supporting PHP 8.1+, i can change the code to use native enumerations

By only supporting PHP 8.0+, i can change the code to use match expressions.

This allows for better code handling and be less prone to bugs.

Are there still people using the unsupported PHP versions?

the-djmaze avatar Feb 26 '24 13:02 the-djmaze

+1 for dropping support of PHP 7.4 and 8.0

phsc84 avatar Feb 26 '24 14:02 phsc84

I am running SnappyMail on a Debian system with PHP 7.4.33. I would be willing to migrate but need some time to do so as this is system in production. If you let me know enough in advance, I'll look into it.

mschilli87 avatar Feb 26 '24 16:02 mschilli87

If you let me know enough in advance,

I will eventually :wink: It is just a thought at the moment. Even I still have a server using PHP 7.4 due to some shopping software.

For now i could make a PHP 8.1+ branch (as the changes are minor) and see if both can be maintained for a while. https://github.com/the-djmaze/snappymail/tree/php81

the-djmaze avatar Feb 26 '24 16:02 the-djmaze

Just like with @mschilli87 we're also using PHP 7.4 on Debian (Linux).

My suggestion is to support whatever current versions of Debian supports so that administrators don't have to contend with performing special upgrades that are outside of what's well-tested and stable in Debian. While "apt" is known to be a bit behind with versions in the Debian production releases, they are well-tested and stable, so this slightly-conservative approach results in better reliability for server administrators in the long-run, and it's particularly important for those of us who are responsible for large numbers of systems -- having to roll out special upgrades onto thousands of Debian instances is not a worry-free task, and using stock "apt" is much preferred.

randolf avatar Feb 28 '24 00:02 randolf

Debian 12 has PHP 8.2 The issue is Debian 10 & 11 which need an additional repo like https://sury.org/

the-djmaze avatar Feb 28 '24 19:02 the-djmaze

Yeah but Debian 10 is the current LTS and and 11 will be for the following two years: https://wiki.debian.org/LTS

mschilli87 avatar Feb 29 '24 07:02 mschilli87

I still use PHP 7.4 from Debian 11 bullseye.

Massedil avatar Feb 29 '24 14:02 Massedil

Debian 12 has PHP 8.2 The issue is Debian 10 & 11 which need an additional repo like https://sury.org/

That's true, although with OS upgrades PHP doesn't always get updated to the newest version, probably because there are some applications that break with PHP updates? (I've seen this mostly with custom code at a number of sites -- we've gotten most of them to prioritize development to resolve this, but a few do lag behind for various reasons.)

Perhaps with such a significant change in requirements it may be helpful to release SnappyMail v3 with those requirements, and then gradually stop updating v2 (after updating v2 and v3 in parallel at least for a little while)? This might help ease the transition for those who are still using older versions of PHP. What do you think of this approach?

randolf avatar Mar 04 '24 01:03 randolf

Perhaps with such a significant change in requirements it may be helpful to release SnappyMail v3 with those requirements.

That would be the best. Then when someone reports a bug, we at least know which code is used.

the-djmaze avatar Mar 18 '24 12:03 the-djmaze

I still use PHP 7.4 from Debian 11 bullseye.

So do I. There is no newer php available for my Raspberry Pi without OS upgrades. It is productive and adding newer php by some means could have side effects I am not keen on tracking down.

Hk1020 avatar Apr 05 '24 11:04 Hk1020

I am using PHP 7.4 on CentOS 7. I have not found anything decent to replace it with - planning to keep running CentOS 7 for many more years. PHP 7.4.33 (cli) (built: Aug 1 2023 09:00:17) ( NTS ) CentOS Linux release 7.9.2009 (Core)

apezio avatar Apr 10 '24 22:04 apezio

CentOS has the Remi repository. I have no idea if Remi still supports 7

the-djmaze avatar Apr 12 '24 16:04 the-djmaze