Alright well, you're just getting annoying so I will have to present some cold hard facts.
PHP Code:
bool Ret(bool b) {
return b;
}
int main(int argc, char *argv[]) {
int a;
if(Ret(true)) {
a = 10;
}
return 0;
}
This code (which is C), when compiled (without optimizations) and dissassembled, produces the
EXACT same assembly as this code:
PHP Code:
bool Ret(bool b) {
return b;
}
int main(int argc, char *argv[]) {
int a;
if(Ret(true) == true) {
a = 10;
}
return 0;
}
There is no redundant checking going on. Stop posting here.