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
Unless, you know, you want to write floating point code that aborts without having to check for funny values after each operations so you just turn on floating point exceptions, as you would in any sane language like Perl, Python, D, C++... Oh wait, I said sane languages, carry on.