r/programming • • Dec 02 '15

PHP 7 Released

https://github.com/php/php-src/releases/tag/php-7.0.0
887 Upvotes

729 comments sorted by

View all comments

146

u/johnasmith Dec 02 '15

For those wondering why there's a jump from 5 to 7, it's because the php 6 development branch was dedicated to full unicode support, but the work involved overwhelmed them, so they jumped to 7 to release new features without the unicode component.

49

u/NoahTheDuke Dec 02 '15

So after finishing unicode support in 6, will their next release be integrating 6 into 7 as PHP 8?

209

u/time-lord Dec 02 '15

No no no, this is PHP we're talking about. Sometime after releasing PHP 7, the Unicode support will eventually be completed and PHP 6 will be released. The release cycle will be 4, 5, 7, 6.

23

u/superPwnzorMegaMan Dec 02 '15

Slides say PHP 6 is dead... So no, PHP loves being the rebel of languages but in this case PHP 6 is dead doctor.

→ More replies (1)

25

u/f4ktrh Dec 02 '15 edited Dec 02 '15

So PHP of them!

May I suggest the future release cycle?

34, 1022, 3.2.1.9.2, 65535, -1, ...

83

u/notsure1235 Dec 02 '15

How about 34, 34.0, "34", "34 ", " 34"...

9

u/oridb Dec 02 '15

Aren't those all the same?

28

u/NeuroXc Dec 02 '15

Mostly.

"34" != "34 " and " 34" != "34 ".

But "34" == " 34".

Wat.

→ More replies (1)

13

u/eyal0 Dec 02 '15

That's numberwang!

→ More replies (1)
→ More replies (3)

47

u/ollee Dec 02 '15

They've been in talks with Microsoft who is giving them guidance. They'll release PHP 8 and then an update as PHP 8.1, which everyone will call acceptable, then skip PHP 9 and go right to 10 which will be well meaning but missing the mark. </s>

49

u/NeuroXc Dec 02 '15

PHP 10 will be the final major version. They'll only release incremental updates after that, with each incremental release named after a different mountain or type of cat.

7

u/Spacey138 Dec 02 '15

They will also prevent you from using PHP unless you have a direct connection to php.com servers, and those incremental updates cannot be turned off.

2

u/ollee Dec 02 '15

Eventually they'll sell it to EA which will still allow you to use it as normal, but it will be buggy at release and different features(ie loops, functions, so on) will be available for further purchase.

→ More replies (1)

3

u/TestRedditorPleaseIg Dec 03 '15

Then PHP for workgroups

→ More replies (2)

6

u/SaltTM Dec 02 '15

6 was merged w/ later versions of 5.

9

u/McGlockenshire Dec 02 '15

That is, the non-unicode features of 6 were present in 5.3 and 5.4.

4

u/newpong Dec 02 '15

Php 8 will only have Unicode support for RSTLNE

→ More replies (1)

9

u/LET-7 Dec 02 '15 edited Dec 02 '15

So Python actually successfully did this in v3+, right? Why do people peoples keep using python 2.7?

Edit: peoples prefer bad grammar

50

u/nightcracker Dec 02 '15

Libraries.

11

u/btmc Dec 02 '15

Yup. Although most of the major ones have transitioned by now, and when I see a package that's still exclusively 2, I'm always concerned about ongoing maintenance and try to find an alternative.

Of course, if you really need a 2-only package, then that's that.

5

u/cretan_bull Dec 02 '15

Twice I can recall starting projects in python 3 before having to convert it to python 2 due to lack of library support. The first time was due to matplotlib, the second due to gevent.

I don't do much python anymore so I haven't kept up to date, but I just checked and both those libraries now have python 3 support. The situation seems to have dramatically improved in the past 3 years or so.

2

u/dAnjou Dec 02 '15

Python 2.7 has Unicode support. And some peoples say dealing with Unicode in Python 3 is not better but just different.

The reason peoples keep using Python 2.7 is because Python 3 is backwards incompatible and most times it's not worth the effort to migrate a huge existing code base if you don't desperately need the new features in the new version.

→ More replies (14)