Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111044 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 3113 invoked from network); 16 Jul 2020 14:46:37 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Jul 2020 14:46:37 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 940611804A7 for ; Thu, 16 Jul 2020 06:39:34 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-io1-f68.google.com (mail-io1-f68.google.com [209.85.166.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 16 Jul 2020 06:39:33 -0700 (PDT) Received: by mail-io1-f68.google.com with SMTP id d18so6038454ion.0 for ; Thu, 16 Jul 2020 06:39:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ulMgDpjnOnq8YBNyjMjLzbyjpOHrJngG3M5ls6/WGgs=; b=UxcjexqNGWxlrKrSU2JkroHs6hnjJGbds9zKUthOYdlvpgp322cqjer0OGzoWt0Xvn 4WCqr/ImrJZHGGHTY5SWeKK8jPQGQJMrvZOyR0B4fDQojkR+RHAFHKBTl7DnlVSbrYA7 aveBB9x81YK3L4khMuvZyA2Dt8WzTTqnsFYYLEyTy0kRmOOHVN4sdSIy9AjdvNA9CFnn /mgVVLZw/FgLHGgRFD7M74aY0574d2Cpq2EIrz7gYhs6QSuGQ4S1CzI9MI0G7vlHAOth EqkOUpiRZTBqQKuDg7d48LQ7MUAJA/KGN3qzhtQw/oR3fyWbdRmvzJkDTfrbdM0Sp179 QdXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ulMgDpjnOnq8YBNyjMjLzbyjpOHrJngG3M5ls6/WGgs=; b=cOnORbEEj9IrkFwLSkrfh3XqPrJHvzlu9xy0N78xwwjA5UA2BIS43gGqFFPth5SZKC mrtYPgi14sVD1Lj+LklXhMZiHlxtLAMqhIVOe9XsZaMWtz6Si7KKaKbL5pcm/0VQbrWo 9mnYSNJCtqg65p1HMEuZamQ0Yx6yj3kOJTLIvpIUAPORXeRR/dxjlIICYEKlMT4WRgrh epON2/MW32+9Y0Kx0ZrbD3u//Zn/uBKDkYbFig2vLOKqOTm8dc1e4+HHUo2uxLeMvR4k 8YiYXIubUbZV8GiRavk7ZOGS1TJuYh6JM5TJhMRWUYoqDJv9as+e3+v+HOPSV6CbNj7S rR7A== X-Gm-Message-State: AOAM532q1BcYRL6KhQUUDSrjAsH5Kpz6wqPRNtaTK8ilnu2oy8D1+fu2 ib3TnNmN27eUDj/DbzUNeYOoVqVLa1MiWHxB9kYtrnV2 X-Google-Smtp-Source: ABdhPJyHal4E/bYP9YGuaKkwup3FozffO7hytTzobLGsMPe5iEhQPrD6dgIAORJsjMHvMAEb0vAbBiiDSnlaTlY/fgQ= X-Received: by 2002:a02:a19c:: with SMTP id n28mr5178885jah.13.1594906773331; Thu, 16 Jul 2020 06:39:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 16 Jul 2020 15:39:21 +0200 Message-ID: To: "G. P. B." Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000aca52405aa8f2b96" Subject: Re: [PHP-DEV] [RFC] [VOTE] Saner numeric strings From: ocramius@gmail.com (Marco Pivetta) --000000000000aca52405aa8f2b96 Content-Type: text/plain; charset="UTF-8" Hey George, I really like this specific bit of the proposal: > And the various cases which currently emit an E_WARNING will be promoted to TypeErrors. I really do not like these particular horrible behaviors of the language (huge "yikes" for PHP being so broken): * `"123" == "123 "` - do not want - already bad enough that leading whitespace is ignored here, and already caused some security issues on my end some years ago * `is_numeric("123 ") === true` - `is_numeric()` should probably be soft-deprecated and replaced with something stricter, instead of expanding this too... I don't really care about `declare(strict_types=0), since I don't use it anymore, nor plan to use it anymore in any foreseeable future, but the two points above really feel wrong, and I'm conflicted about what to vote. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On Thu, Jul 16, 2020 at 3:21 PM G. P. B. wrote: > Hello internals, > > I've opened voting for the Saner Numeric strings RFC: > https://wiki.php.net/rfc/saner-numeric-strings > > This will last 2 weeks until the 30th of July > > Best regards > > George P. Banyard > --000000000000aca52405aa8f2b96--