Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90985 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80409 invoked from network); 27 Jan 2016 20:08:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jan 2016 20:08:20 -0000 X-Host-Fingerprint: 90.214.110.189 unknown Received: from [90.214.110.189] ([90.214.110.189:24216] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D1/4C-28185-3B329A65 for ; Wed, 27 Jan 2016 15:08:19 -0500 Message-ID: To: internals@lists.php.net References: <55.70.56702.FD2E7A65@pb1.pair.com> Date: Wed, 27 Jan 2016 20:08:15 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 90.214.110.189 Subject: Re: [PHP-DEV] Re: [RFC] Warn about invalid strings in arithmetic(moving back todiscussion) From: ajf@ajf.me (Andrea Faulds) 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/