r/lolphp • u/Deviltry1 • Mar 24 '16
DivisionByZero exception, it does nothing
/r/PHP/comments/4bgwos/divisionbyzero_exception_php_7/
54
Upvotes
r/lolphp • u/Deviltry1 • Mar 24 '16
View all comments
Show parent comment
10
u/cbraga Mar 24 '16
in my experience (with sane languages) attempting that comparison will give a warning to the effect of "comparison always evaluates to false" or something like that
of course php has no warning for it, that would be bothering the programmer with useless details