Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108803 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 71053 invoked from network); 2 Mar 2020 15:49:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Mar 2020 15:49:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EAB411801FD for ; Mon, 2 Mar 2020 06:08:35 -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, RCVD_IN_DNSWL_NONE,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-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179]) (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, 2 Mar 2020 06:08:35 -0800 (PST) Received: by mail-il1-f179.google.com with SMTP id x2so9392832ila.9 for ; Mon, 02 Mar 2020 06:08:35 -0800 (PST) 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:content-transfer-encoding; bh=wDdBqXaqpbY0dKso8kS/HUi+TtpryC/XDzPkYfcT2IE=; b=kKkEUY4Tnrd+kqTeyZBmiTtVvv4ieV7ZuAfuXxZDx1y6I3MnveECD1y4fs1hKF8vuF O92/lRvkles0d0UcBp0m9GAhyMpCQEVK17Lffxo+MmtCUS3MdOak9T8SBxW5WNaQR1cJ qlFQTygj5Y8eKV/OLyPDrZsX4gQnT9aOup4700WraBExdh5WKYadDNALljIrPOfAo60e 6ucXwnQnqTY2CizXhsaCb4nSTbIqOvdWTB0TV1Xi71H8+MP0vdYbjFNC/GLXwiEhTD27 Foo66NFwZ17RK7d3qn1U25UL+RYN0xB8WDnvuSkmjNIj3kxk7/WIapdPg4/MB/V+UiZ1 XyKg== 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:content-transfer-encoding; bh=wDdBqXaqpbY0dKso8kS/HUi+TtpryC/XDzPkYfcT2IE=; b=Dz9TjjxhIk2g0dGG79LMEgCTft4GA3LE7fjmnIZBvWOhAaNzajSifU2dnG5xwafYqV X/V0Ag/FZ127clw89J6Bt/pjd0kt+1uGNcDGjDePLMF14QU68wwJAaoYVhgKWu2qUHCQ z9XL2blImqvKyFAXRyEa1lYG+cwyv3Imz5D1XTUtQfv/HeZipBsW5HQnl/xZjbG49FUc eyb5SL+Z+rwvydWHNCpcD8JYvPY1l3TrZpgDBThzesK29fE3LrB2zicBck83qQD9TZLr tBhp6+CHLSqPSVBECQHSu36GxjSpb+TgiinRbMIL6n6y2XCFWnMzaaFG/65mhr/tq/dp 3GLQ== X-Gm-Message-State: APjAAAXP5ee2VGOdPUd/bus73T7JZQVoKBZnUbSmW9tB5EkLnzpRBH7n ZuTiC3vWSRoAuF46XvPoN/fnxjzaLunZX8qW2ww= X-Google-Smtp-Source: APXvYqzoOcRNBsBbfN8PO75sCCCzafAahnQgTiLKYNK3+hWs5pi3ILAZNiR6yY56xbvVr3PETRljOlkjTktyQHQfT3M= X-Received: by 2002:a92:8808:: with SMTP id h8mr15047350ild.253.1583158115005; Mon, 02 Mar 2020 06:08:35 -0800 (PST) MIME-Version: 1.0 References: <3f615d82-a84b-697b-5c02-8d915270f92c@gmail.com> In-Reply-To: Date: Mon, 2 Mar 2020 14:08:24 +0000 Message-ID: To: =?UTF-8?Q?Alexandru_P=C4=83tr=C4=83nescu?= Cc: PHP Internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Increment/Decrement Fixes From: rowan.collins@gmail.com (Rowan Tommins) Hi Alexandru, On 2 March 2020 09:22:57 GMT+00:00, "Alexandru P=C4=83tr=C4=83nescu" wrote: >For point 1 and 2, both the old and new behavior is silent. Can we >think of >a safer way to migrate? That's a very good question, and one I don't have a particularly good answe= r to. The problem with this kind of behaviour change is that there's no way for PHP to know whether a particular piece of code has been changed to expect the new behaviour or not, and therefore whether to raise a deprecation notice. An opt-in notice on *all* usages could allow the user to build up a list of places in their code to check, but they'd still need to manually track which they'd already looked at, so I'm not sure how useful it would be. What I will look into is how well static analysis tools such as PHPStan and Psalm could build a similar list, as I think that's generally a more useful approach. Regards, --=20 Rowan Tommins [IMSoP]