Re: Re: [RFC] Warn about invalid strings in arithmetic(moving back todiscussion)
| From: | Andrea Faulds | Date: | Wed, 27 Jan 2016 20:08:15 +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-90985@lists.php.net to get a copy of this message | ||
Hi Levi,
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.They're the correct tools to use in some cases. We have a special class of numeric strings for array indexes, for example (which can't be fixed). For the cases this RFC would fix, the tests would spot if the behaviour changed. Thanks. -- Andrea Faulds https://ajf.me/