MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3v4l98/php_7_released/cxl04dx?context=9999
r/programming • u/fnkrx • Dec 02 '15
729 comments sorted by
View all comments
146
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 integer comparison vs. string comparison.http://php.net/manual/en/language.types.string.php#language.types.string.conversion 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)
49
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 integer comparison vs. string comparison.http://php.net/manual/en/language.types.string.php#language.types.string.conversion 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)
209
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 integer comparison vs. string comparison.http://php.net/manual/en/language.types.string.php#language.types.string.conversion 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)
25
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 integer comparison vs. string comparison.http://php.net/manual/en/language.types.string.php#language.types.string.conversion 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)
83
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 integer comparison vs. string comparison.http://php.net/manual/en/language.types.string.php#language.types.string.conversion 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)
9
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 integer comparison vs. string comparison.http://php.net/manual/en/language.types.string.php#language.types.string.conversion 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)
28
Mostly.
"34" != "34 " and " 34" != "34 ".
"34" != "34 "
" 34" != "34 "
But "34" == " 34".
"34" == " 34"
Wat.
3 u/alexanderpas Dec 02 '15 integer comparison vs. string comparison.http://php.net/manual/en/language.types.string.php#language.types.string.conversion 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)
3
integer comparison vs. string comparison.
http://php.net/manual/en/language.types.string.php#language.types.string.conversion
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)
2
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)
Then you should just use the === operator.
===
== is nice when you want to compare data from $_GET etc.
==
→ More replies (0)
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.