Re: [RFC] [VOTE] Saner numeric strings
| From: | Mark Randall | Date: | Thu, 16 Jul 2020 14:34:49 +0000 |
| Subject: | Re: [RFC] [VOTE] Saner numeric strings | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-111046@lists.php.net to get a copy of this message | ||
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