Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113371 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 53556 invoked from network); 4 Mar 2021 13:16:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Mar 2021 13:16:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 093E51804D3 for ; Thu, 4 Mar 2021 05:07:42 -0800 (PST) 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_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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, 4 Mar 2021 05:07:41 -0800 (PST) Received: by mail-ej1-f45.google.com with SMTP id lr13so49239983ejb.8 for ; Thu, 04 Mar 2021 05:07:41 -0800 (PST) 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=N9TN+HEBhoaW0YjBMJhHtouFH4ZS7YlGMCjFFv2yEpA=; b=U9aSJODRS0+NVMCiKT1TfN1GCFsuJOav4lPz6pWAcphPzn1dajP6H2YIXzWwMUSLYV VvNH751SG0G/m97/DWo9Il9MOYHlw8RXbKPTHjtnHQYtuuOd5KUKHpmuUH+gy802fQme +7sjv9oK4VTKzBV2az9pT8FEymOngxnY9U36uhU659vqDCzt0PDdDsQCZKXYOz/lEB4s D42XwzcQgwB4dekGqlX2PRGtfHN8wehMD28qh5l33amRBtOaWg9ExYP2aJYY9wgh7tP1 +7cbslJUDr6NSEkRHX68j3MsFRAi5P+f8Z7sb1Vq5KClsmkjWcsYkYmuuXB5HFOy4S4G QUFg== 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=N9TN+HEBhoaW0YjBMJhHtouFH4ZS7YlGMCjFFv2yEpA=; b=qeeXdHEblgclCj5trc063JeHrC1wR/o5TQfXiMcYuhPOh3hgr2V/vGnS/0eqh6+VBt BRCfNlI8VrQWUtnBf3l3Zu1JQPHhHy38xjS2PUgAdRNsL4zV0Kcj2eI7uzp6IdgrkDr8 YmrrHjoZFYqFK0MrdC0JS19OUnLoSvXleSEu/04NRblzk0m6N5GK5kYf6FxpCdvfEZgA KjSLzKwO9Yp9ziU1IeYd9fNgKp+fjG0ON2phb7aKjPVIh7qsv/PegRw2wMniGoRYbH5w AgzdgD3p7k0BMOqFPjeYGLyZVWcCD93s6iWzK8G+p9k+BVWAjW7GHkgjodUgjepZDCGh mjjQ== X-Gm-Message-State: AOAM530+SSjGHa6+O26gbDr80JN+HFViKLK8axqaubm7RMZdEffFTmaB 1OWhsg58f9/sxNm7kVx+5jwOzRAhHH6qCqufXDIuXBrPda8= X-Google-Smtp-Source: ABdhPJzeHXoCVNSdIHpImUlVdylJVv5EMX85bwDbOiZCr/O1EjkO1UuamINoMs6RfC5BQzopiWGLGoLpHvUUNtvYJ84= X-Received: by 2002:a17:906:3856:: with SMTP id w22mr4099220ejc.77.1614863256650; Thu, 04 Mar 2021 05:07:36 -0800 (PST) MIME-Version: 1.0 Date: Thu, 4 Mar 2021 13:07:25 +0000 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000c6077b05bcb5a64e" Subject: [PHP-DEV] [RFC] Deprecate implicit non-integer-compatible float to int conversions From: george.banyard@gmail.com ("G. P. B.") --000000000000c6077b05bcb5a64e Content-Type: text/plain; charset="UTF-8" Hello internals, This is a follow-up on the previous thread [1] about my RFC tackling implicit float to int conversion. It is now slightly larger in scope as it also pertains to what I call "non compatible integer floating numbers". This new version of the RFC can be found on the wiki: [2] https://wiki.php.net/rfc/implicit-float-int-deprecate Feedback is as usual welcomed, however I am not interested in changing the behaviour of explicit casts. One detail is if this RFC should also allow the usage of int compatible float strings for string offsets, behaviour which has been removed in PHP 8.0 with the Saner Numeric Strings RFC. [3] Best regards, George P. Banyard [1] "[RFC] Warning for implicit float to int conversions" https://externals.io/message/113077 [2] https://wiki.php.net/rfc/implicit-float-int-deprecate [3] https://wiki.php.net/rfc/saner-numeric-strings --000000000000c6077b05bcb5a64e--