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?
Ways to mitigate the problem:
-ffloat-storein CFLAGS (will slow down the code).Looking for the code that has
floatprobably won’t help aszend_strtodis used by the engine in many string->number conversion scenarios.P.S. this code btw is standard BSD library
strtodcode, not unique to PHP. So other projects using this code might be affected too.