Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109328 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 68536 invoked from network); 26 Mar 2020 11:29:43 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Mar 2020 11:29:43 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9C5551804B8 for ; Thu, 26 Mar 2020 02:54:36 -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=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, 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-vs1-f52.google.com (mail-vs1-f52.google.com [209.85.217.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 ; Thu, 26 Mar 2020 02:54:35 -0700 (PDT) Received: by mail-vs1-f52.google.com with SMTP id j128so3434208vsd.6 for ; Thu, 26 Mar 2020 02:54:35 -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=Xl1QnceQR1i0DhhpkfXA0UlsnvM+qny7WKF3k1Mc6W0=; b=opkuGkJrjaUWu63MDUqpMfxjvX3Wz5kgyKC/RGZM1xAI7BrvwYFixZCZXdwRHAOjyh dnsBTF29gum3kEtw1tG9u+amDtCVh2pbkKTZnC8KBC/bZgxXBKDLw74zfbpNJLzb8NgH rrh2WCClc8u9GsoM1/mRo2Lo3rKY6wjHaW2dwbK7rPq0PWvheYwnxz0h/G/llDgYCNFn GnRrk7hOLssk9ua4GunnARIUaO4xrX8hHqvGwlYk+1li/OtvZnmLVrHpY6fd2m53fRC/ 5K7OaKc6UjOkq5Pjq5hynIATkSBviT2HF0qQDV5uYT5eh5jAUkYwnSb5kZTXPU+22B/w JAew== 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=Xl1QnceQR1i0DhhpkfXA0UlsnvM+qny7WKF3k1Mc6W0=; b=DZZxXshDTOA2ZRXa4Yregl0QKXYawY7Bxqqch9eiQwNCmarhmfTpHEYWFODJaJ1erZ JxsJccPXSy4pkrUskn1fVpq70h8vcJytVBMpeI4uzFNMf6rLBi5/vftGeJFJxhZQ0nUB 6OujNTTmAyt/h+siDLpgt1AjO/WykdetsyMKsJ7tnFAWmn+IJ+gPKAFJrDVhv45/I79x 24OlEuPjOioPnCQFxstHGuokxN7N74VeAy41bp6cmd+c9kFLky3BnDPKMYvA9bWj1jzy f3zi51tgFIhxK3oDGooLVANyUcC5AUw1vumKz52w3xBwnMlT/5ttrdOerjhXQplh6LIL PqJQ== X-Gm-Message-State: ANhLgQ007nfgYzSNqwzYCLg+12zGC2gJDaaRUK8AKI+4a50WyB8dN7f8 glEzbjmT1dPJItXEdcss5xI8R1ik0Mp2txpXRIw= X-Google-Smtp-Source: ADFU+vv39kUOilH70InLkD01r8wqEE9VL6+TAEeiZ1iV+dl8vFNjrEvOdrSP3eSGP6Z0Ahqf4zzyFmkqe8yst7iqxUo= X-Received: by 2002:a67:eecb:: with SMTP id o11mr6232196vsp.227.1585216472320; Thu, 26 Mar 2020 02:54:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 26 Mar 2020 10:54:21 +0100 Message-ID: To: Lynn Cc: "G. P. B." , Nikita Popov , PHP Internals List Content-Type: multipart/alternative; boundary="000000000000b9917605a1bef8bc" Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] Locale-independent float to string cast From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --000000000000b9917605a1bef8bc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Lynn, Thank you very much for the input! Then we could add a secondary vote to the RFC where an upgrade path was decided upon. The first such path is the one proposed by Christoph: Introduce a temporary ini setting with which a "debug" mode of float to string casting could be enabled. That is, when it's turned on and a casting is affected by locale settings then a warning is emitted. This setting would be removed in a (near) future version of PHP. Although PHP 8.1 would be an unusual candidate to do so, but it *might* be possible if we found a good way to warn people from day 0 that it's just a temporary flag? Maybe by an immediate deprecation? Is there any other idea for a sensible upgrade path? Cheers: M=C3=A1t=C3=A9 --000000000000b9917605a1bef8bc--