MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3v4l98/php_7_released/cxkf5jb/?context=3
r/programming • u/fnkrx • Dec 02 '15
729 comments sorted by
View all comments
154
Ooh, only 137 compiler warnings and 102 failed tests! That's a huge improvement from 5.6's 638 warnings and 114 failed tests!
113 u/snorkl-the-dolphine Dec 02 '15 warning: unused variable 'success'Yep, that sounds like PHP alright. 21 u/Hazasoul Dec 02 '15 http://lxr.php.net/xref/PHP_7_0/ext/zlib/zlib.c#1098int success = deflateSetDictionary(ctx, (Bytef *) dict, dictlen); ZEND_ASSERT(success == Z_OK);It looks pretty used to me? 43 u/shamanas Dec 02 '15 ZEND_ASSERT is probably a macro that outputs nothing in a release build. 8 u/[deleted] Dec 02 '15 Are we sure that's a good idea? 12 u/shamanas Dec 02 '15 This is pretty standard in C and C++, just make sure not to include any side effects in your assertion condition :) → More replies (4) → More replies (2) → More replies (1)
113
warning: unused variable 'success'
Yep, that sounds like PHP alright.
21 u/Hazasoul Dec 02 '15 http://lxr.php.net/xref/PHP_7_0/ext/zlib/zlib.c#1098int success = deflateSetDictionary(ctx, (Bytef *) dict, dictlen); ZEND_ASSERT(success == Z_OK);It looks pretty used to me? 43 u/shamanas Dec 02 '15 ZEND_ASSERT is probably a macro that outputs nothing in a release build. 8 u/[deleted] Dec 02 '15 Are we sure that's a good idea? 12 u/shamanas Dec 02 '15 This is pretty standard in C and C++, just make sure not to include any side effects in your assertion condition :) → More replies (4) → More replies (2) → More replies (1)
21
http://lxr.php.net/xref/PHP_7_0/ext/zlib/zlib.c#1098
int success = deflateSetDictionary(ctx, (Bytef *) dict, dictlen); ZEND_ASSERT(success == Z_OK);
It looks pretty used to me?
43 u/shamanas Dec 02 '15 ZEND_ASSERT is probably a macro that outputs nothing in a release build. 8 u/[deleted] Dec 02 '15 Are we sure that's a good idea? 12 u/shamanas Dec 02 '15 This is pretty standard in C and C++, just make sure not to include any side effects in your assertion condition :) → More replies (4) → More replies (2) → More replies (1)
43
ZEND_ASSERT is probably a macro that outputs nothing in a release build.
8 u/[deleted] Dec 02 '15 Are we sure that's a good idea? 12 u/shamanas Dec 02 '15 This is pretty standard in C and C++, just make sure not to include any side effects in your assertion condition :) → More replies (4) → More replies (2)
8
Are we sure that's a good idea?
12 u/shamanas Dec 02 '15 This is pretty standard in C and C++, just make sure not to include any side effects in your assertion condition :) → More replies (4) → More replies (2)
12
This is pretty standard in C and C++, just make sure not to include any side effects in your assertion condition :)
→ More replies (4)
154
u/antpocas Dec 02 '15 edited Dec 02 '15
Ooh, only 137 compiler warnings and 102 failed tests! That's a huge improvement from 5.6's 638 warnings and 114 failed tests!