MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3v4l98/php_7_released/cxkhuu4/?context=3
r/programming • u/fnkrx • Dec 02 '15
729 comments sorted by
View all comments
Show parent comments
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)
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)
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)
113
u/snorkl-the-dolphine Dec 02 '15
Yep, that sounds like PHP alright.