PHP float bug: PHP Hangs On Numeric Value
Posted
by
jeroen
on Stack Overflow
See other posts from Stack Overflow
or by jeroen
Published on 2011-01-05T15:10:26Z
Indexed on
2011/01/05
15:53 UTC
Read the original article
Hit count: 248
I just read an interesting article about php hanging on certain float numbers, see The Register and Exploring Binary.
I never explicitly use floats, I use number_format()
to clean my input and display for example prices.
Also, as far as I am aware, all input from for example forms are strings until I tell them otherwise so I am supposing that this problem does not affect me.
Am I right, or do I need to check for example Wordpress and Squirrelmail installations on my server to see if they cast anything to float? Or better, grep
all php files on my servers for float
?
© Stack Overflow or respective owner