Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119939 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 32963 invoked from network); 11 Apr 2023 18:13:24 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Apr 2023 18:13:24 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 84AAC180545 for ; Tue, 11 Apr 2023 11:13:24 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29838 64.147.123.0/24 X-Spam-Virus: No X-Envelope-From: Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 11 Apr 2023 11:13:24 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 6714B320091D for ; Tue, 11 Apr 2023 14:13:23 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute4.internal (MEProxy); Tue, 11 Apr 2023 14:13:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1681236803; x=1681323203; bh=0iytDGf+vs peSvPaxsIxQh+RUw640SkN9Y7MLAGF9CE=; b=f0AWjw5SiiNoldFWexM1GAjMVj 5Fy16bHy8GHHk+gf3rkpOFJ50/63FxpxD1/125NplHXXcLIjrbMVYoYPvrkRV9Ct 501nb2c5GuFTODHbYBiDZzu2lBH6M8eD+wpkQb57PjlDJgLviBi8nk9tiyHnihK8 yeN0UNyQwAbdi1RyEN3VQIDqwoWqVwX1B505QRstFrTFa0cqHOwOhDUlH9Rj/AV5 oil6/cp1BEosFVgDR+BIwTz1u1R4MGEV7Mg2KXnhK+BH+OJscONXZZduUvlRUlSn UA9qxFDcKDNYNNFNXtvlzeQWYKoGodZouUnbWTwdIB0Nk8SSK/vWVW9vUndA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1681236803; x= 1681323203; bh=0iytDGf+vspeSvPaxsIxQh+RUw640SkN9Y7MLAGF9CE=; b=E d3ks/4CmH9Oqdh1/OYbDskYM41VrxU4go5oxh2bcEKJGYbQJiasFls5kdNVFQF6v VvuDdjW3g958Yk8NTqGhZ2+6dAhh6nJcZ+boeQ4WuZKkCfJWU29YuxrLFbtJ/1+I A/xnwZaBA4so9UAySm1cDh2hPBBBl5dMmVEc4oN9SI1qin13e7ON36c0DCd0YXik XWKzhN1FRNCNqz2NfTBsYLlOy6XgnjN0i5b2euUY2xtdY4qqgctV1d4T/fgWtrbp HeKatL63dy3tREk2NGU0K+bdiy06pgVe4QtAM+Rdn1DqFu8+N0YvCO6UvJ31xq+3 qVty+r8VbcyBj54SKOl4A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdekgedguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdfn rghrrhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrd gtohhmqeenucggtffrrghtthgvrhhnpeffffffjeffudfggeevvdeitdetvdfgjefffeff jeelfeejteevheeghffhvdfgleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id C155A1700089; Tue, 11 Apr 2023 14:13:22 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-334-g8c072af647-fm-20230330.001-g8c072af6 Mime-Version: 1.0 Message-ID: In-Reply-To: References: <8abbed60-5569-4eca-ad12-957877feed9b@app.fastmail.com> Date: Tue, 11 Apr 2023 18:13:01 +0000 To: "php internals" Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Future stability of PHP? From: larry@garfieldtech.com ("Larry Garfield") On Tue, Apr 11, 2023, at 4:32 PM, Jeffrey Dafoe wrote: > Can you expand a bit more on your use-case? > > We have a lot of classes, a small portion of which use dynamic=20 > properties, but we do not necessarily know which ones do. It=E2=80=99s=20 > different than, for example, a change to the count function. We can=20 > search for all instances of =E2=80=9Ccount=E2=80=9D but not for dynami= c properties. I=E2=80=99m=20 > unsure if it=E2=80=99s practical to run deprecations on in prod and ou= r test=20 > suite, although substantial, doesn=E2=80=99t cover all code paths. Tools like PHPStan and Psalm can do a pretty good job of finding all dyn= amic property usage for you, without needing to write a test suite for i= t. They'll treat them as an error, but it should give you a good sense = of where to add the attribute. It won't be perfect, but it will probably catch the lion's share of them= unless you're doing very dynamic things. ($this->{$foo[$bar]} =3D 5, o= r stuff like that.) --Larry Garfield