Re: FILTER_SANITIZE_NUMBER_FLOAT non/sense [message #177017 is a reply to message #177015] |
Thu, 16 February 2012 12:49 |
Michael Fesser
Messages: 215 Registered: September 2010
Karma:
|
Senior Member |
|
|
.oO(M. Strobel)
> I read this as "correct, it is messed up".
It was meant as "correct as defined in the manual".
> So we seem to agree this is ridiculous and unusable.
It might be ridiculous, but why is it unusable? Just define the options
you need.
> I wondered if there was some hidden secret - none so far.
I could imagine one. The meaning of the separators in a float number
depends on the locale. Here in Germany for example the meaning is
reversed. So IMHO it makes sense to force the developer to think about
this potential issue and explicitly define the behaviour of this filter.
OK, most likely not the strongest reason ...
Micha
--
http://mfesser.de/blickwinkel
|
|
|