Gábor Szuromi a écrit :
0.0? I've created a diff against revision 1.67 which resolves these
issues using functions strtol() and strtof(). They can detect parsing
errors so $int() and $float() return null is that case. Moreover this
eliminates the need of parsng hexadecimal representations by hand
because strtol() can handle it.

Hi,

While I agree with you that using strtol/strtof might be better, I'm not sure I will patch Neko with it, because we have a lot of existing code which might actually use the atoi/atof "feature", and we don't want to break our websites.

I'll try to think of a way to deal with it, for example maybe first make a patch that logs the calls where atoi != strtol, and then later switch to it.

Nicolas

--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to