Re: Re: [RFC] Warn about invalid strings in arithmetic (moving back todiscussion)
| From: | Michael Wallner | Date: | Thu, 28 Jan 2016 07:03:24 +0000 |
| Subject: | Re: Re: [RFC] Warn about invalid strings in arithmetic (moving back todiscussion) | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-90988@lists.php.net to get a copy of this message | ||
On 27/01/16 01:54, Levi Morrison wrote:
> I personally consider the new changes with fractional and scientific
> notation strings and integer operators to be the more important
> change. Thanks to everyone who identified and fixed this
> inconsistency.
>
> Does anyone have any good ideas on how to prevent strtol and strtod
> from being re-introduced to the repository? I could potentially see
> this happening.
>
Pardon? There's no need to "ban" any standard functions, just make sure
you always use is_numeric_string when dealing with userland. It's
perfectly fine to use strtol, when you know what you're doing.
Unfortunately, it seems, we don't have a suitable place to put that notice.
Kudos to everyone discovering that.
--
Regards,
Mike