Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110771 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 60715 invoked from network); 29 Jun 2020 11:42:07 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Jun 2020 11:42:07 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 647791804CF for ; Mon, 29 Jun 2020 03:30:46 -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=-0.7 required=5.0 tests=BAYES_05,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-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (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 ; Mon, 29 Jun 2020 03:30:45 -0700 (PDT) Received: by mail-ed1-f52.google.com with SMTP id dm19so6116831edb.13 for ; Mon, 29 Jun 2020 03:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=avpsule4pFgloU5F+oWd9bDBCZgl69dew9NjGSSxis0=; b=XSiFCLHY2jMDJLzkQTqx9Pl60BFK9wSg5DAj00bIlwHx2SHw63XXNs7RjXIOG66eCV 6HHQwCI0pO630UiSjTgh4709P0LVd9Nwfe8IjdJwokJaXJQjPUC59wbPGPfFgVL5MYMk jELoXA6wOqDBhVvhSuYiju4HBECJZS5JAZvDkyRSgfepP/pfTbvH4IQzKqAdNtt4GE5m GgGK2JCbq/EIvmrVQZUSBCYpZV390QW8iTtPvKACnoEv7ZeUnzX3daLK4pDbkFhDfjg/ 21jtmKfOIYGA3Qbu05bXNz73/Ukb/w5ITsLZS4CU3xCnbr/kUCCS/shbQsEBJBZVKby6 sdJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=avpsule4pFgloU5F+oWd9bDBCZgl69dew9NjGSSxis0=; b=UpSITbC+n6esjBO+dJT42+sUESJBlqNyNGcXJuD59jHQ5FKpksrvWNdT77G4KWYwSb Zw1oee7yPjfeQoh12sY54fnDcnrrSj3lnoiZtib7GzblrwREgC7OeseTOJ/mhElAO404 aVj6/1g/w55/Teq4WK9RIi78z5XioCwkeZyyZHm02+dYa0sZ/2ts5p8r1Va3+OGUUsAg +CJaEQVQt5fnXV4h2bKMBk/cl4bfEI0hrSGjSifq1QJIFJis/TTj/+ZzzSODZOUHR2Yy 2ySmwyc+yE6XYXTRFowGCu8zqgsdDXMBKqtRYAvs0QevxHoSopJxfztDSdwEAZdiiXaB I/hA== X-Gm-Message-State: AOAM532olKJBDrBOVy+LKuGTzouZCDWMDhP2RzxUxdfmPfuVjUdet4t5 JxMv7E6Ujjqa68C9Fv7quzyKo4/tcOiicLO3ESnlkMZo X-Google-Smtp-Source: ABdhPJxl6GkMdvgt2gLYZlJNaE/yjHLca91J/fhIIjMlaO7gfcCwwpKkT9aEvGU0TnURYDxlp+WPS8WFWIt/u0U88qg= X-Received: by 2002:aa7:c5d4:: with SMTP id h20mr16439662eds.115.1593426643799; Mon, 29 Jun 2020 03:30:43 -0700 (PDT) MIME-Version: 1.0 Date: Mon, 29 Jun 2020 12:30:35 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="00000000000014509705a9368d61" Subject: [PHP-DEV][RFC] Saner numeric strings From: george.banyard@gmail.com ("G. P. B.") --00000000000014509705a9368d61 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Greetings internal, While reviving the "Permit trailing whitespace in numeric strings" RFC [1] I didn't see Nikita's comment on Andrea's original PR which commented on the fact that we should get rid of the "leading-numeric string" concept. Therefore, mostly due to time constraints, I've merge the trailing whitespace RFC with the removal of this concept in the following RFC: https://wiki.php.net/rfc/saner-numeric-strings The main gist is to convert all E_NOTICEs =E2=80=9CA non well formed numer= ic value encountered=E2=80=9D to the usual E_WARNING =E2=80=9CA non-numeric value en= countered=E2=80=9D and allow trailing whitespaces, which would be most reasonables cases where the E_NOTICE has been emitted. This RFC is heavily based on Andrea's original RFC [1] and I would like to thank her once more for the preliminary work she's done that I could reuse. Best regards George P. Banyard [1] https://wiki.php.net/rfc/trailing_whitespace_numerics --00000000000014509705a9368d61--