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.

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.

3

u/alexanderpas Dec 02 '15

2

u/greyfade Dec 02 '15

This is one of PHP's more annoying issues. When comparing two values that are strings, they should not be converted to ints just because they can be.

2

u/alexanderpas Dec 02 '15

Then you should just use the === operator.

== is nice when you want to compare data from $_GET etc.

→ More replies (0)