Skip to main content
Topic: Minimum php version for Elk 2.0 (Read 5712 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Minimum php version for Elk 2.0

I think we didn't resume the discussion yet for 2.0.

2.0 is likely to be a thing in a couple of years (realistically), so php "stable" should be... 7.4 more or less (1 version per year and 7.2 has just been released few  days ago).
According to http://php.net/supported-versions.php 7.0 has gone out of active support 3 days ago and will receive security fixes for about another year (end 2018).

I think in the recent couple of years, since php started the new release model, the attention has increased and even hosting companies started providing very recent versions of php. Also many projects jumped on the 7.x wagon meaning that the support should be there almost everywhere, even though people may not be aware of it.

So... I think it would be safe to say 7.0 at least or maybe even 7.1 as minimum (considering that 7.1 will receive security updates only until end 2019).

Opinions?

BTWW this topic is twitter's fault for showing me this https://twitter.com/joomla/status/938421673941962753 :P
Bugs creator.
Features destroyer.
Template killer.

Re: Minimum php version for Elk 2.0

Reply #1

Agree ... 7.x is what it should be, what .x is time will tell, but starting out with .1 makes the most sense to me.

Re: Minimum php version for Elk 2.0

Reply #2

I agree with this too. 2.0 should run on at least 7.0 so it will be easier for the developer to focus their energy for betterment rather than backward compatibility to older php version. 7.1 to start with IMHO would be too much though since most linux distro haven't even use that as their default supported php as yet.

Re: Minimum php version for Elk 2.0

Reply #3

QuoteAlso many projects jumped on the 7.x wagon meaning that the support should be there almost everywhere
I can confirm that, a few days ago I installed in localhost Joomla 4 (alpha release) and the minimum php version required is 7.0. 
sorry for my bad english

Re: Minimum php version for Elk 2.0

Reply #4

I choose the most recent version for today - php 7.2

Re: Minimum php version for Elk 2.0

Reply #5

I just installed and tested elkarte with php7.2. So far so good...

Re: Minimum php version for Elk 2.0

Reply #6

I would go with 7.1 depending on your timeline.
All my current sites are on the latest 7.1.x

Re: Minimum php version for Elk 2.0

Reply #7

PHP 7.1 as a minimum seems fine by me. After all, PHP 7.0 will already be EOL by the time 2.0 will see the light of day. But of course at the same time, one shouldn't randomly break 7.0 or even 5.6 compatibility unless there's a good reason to.

So in that sense I'd say start out with 7.07.1 as a target and should something come up that would be a lot more elegant with 7.17.2 you can just call it a day for 7.07.1 compatibility. :P

Edit: oh, 7.0 is out of active support already? (Sorry, I should've fully read the OP. :-[ Never mind, replace 7.0 and 7.1 by 7.1 and 7.2 in the above then. ;) Still, unless there's a good use case for those void return types it seems like 7.0 is reasonable enough.

Re: Minimum php version for Elk 2.0

Reply #8

Yep, 7.2 doesn't really offers anything that much important in comparison to 7.1.
7.1 has few minor goodies, but then again nothing tremendously relevant.
7.0 is mostly old already. xD

I think the idea is: we continue coding without worrying too much about compatibility with anything below the minimum. If by chance when we are a the end of the release cycle nothing is broken and Elk can run on something lower than the defined minimum that's all good, if it cannot that's good as well.
I don't think we strictly need any 7.0/1 feature, of course we are not forced not to use them if we need them. I hope the sentence makes sense. LOL

Anyway the outcome seems pretty clear: 7.1 seems acceptable.

 emanuele goes thinking about upgrading his development computer now (still running php 5.6).
Bugs creator.
Features destroyer.
Template killer.

Re: Minimum php version for Elk 2.0

Reply #9

I think a lot of low cost hoster use PHP5.6   :o

So I think this is the lowest level for PHP ... 

And 7.2 have a lot of deprecated functions ... this must checked.

Fel
Many are stubborn in relation to the path, a few in relation to the target.
Visit our new Forum Project on https://www.portamx.com


Re: Minimum php version for Elk 2.0

Reply #11

Quote from: Feline – I think a lot of low cost hoster use PHP5.6   :o

So I think this is the lowest level for PHP ...
If something were to be released now I would agree (and 1.1 is still 5.3). But if you think of what will be in 2 years from now I don't think many will still be using 5.x.
Bugs creator.
Features destroyer.
Template killer.

Re: Minimum php version for Elk 2.0

Reply #12

Well .. I lift up our forum to PHP 7.2 Beta and activate Opcode Cache ..
Wow .. Very fast .. half time as on PHP 7.1 without Opcode Cache  :)

Spoiler (click to show/hide)

Fel
Last Edit: December 09, 2017, 11:23:48 pm by Feline
Many are stubborn in relation to the path, a few in relation to the target.
Visit our new Forum Project on https://www.portamx.com

Re: Minimum php version for Elk 2.0

Reply #13

Yaass! Null coalescence operators can be used!

Re: Minimum php version for Elk 2.0

Reply #14

Quote from: Feline – Well .. I lift up our forum to PHP 7.2 Beta and activate Opcode Cache ..
Wow .. Very fast .. half time as on PHP 7.1 without Opcode Cache  :)
So what about 7.1 with opcode cache? :P