Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111046 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 16939 invoked from network); 16 Jul 2020 15:41:53 -0000 Received: from unknown (HELO localhost.localdomain) (76.75.200.58) by pb1.pair.com with SMTP; 16 Jul 2020 15:41:53 -0000 To: internals@lists.php.net References: Date: Thu, 16 Jul 2020 15:34:49 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Posted-By: 87.81.129.66 Subject: Re: [PHP-DEV] [RFC] [VOTE] Saner numeric strings From: marandall@php.net (Mark Randall) Message-ID: On 16/07/2020 16:15, G. P. B. wrote: > I do agree that accepting trailing whitespace may be considered suboptimal > but as leading whitespaces don't even emit an E_NOTICE it is impossible to > drop this "feature". Didn't someone (Nikita?) already back-port a warning to 7.4 about some changes coming in 8.0? So it's not really impossible... it just takes the will to do it. We can keep making small tweeks trying to make it better, or we can just do the "proper" thing, reject everything except exclusively properly-formatted numbers, and put the issue to bed permanently. Mark Randall