Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122625 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 262931AD8F6 for ; Tue, 12 Mar 2024 17:16:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1710263834; bh=Ij3Vw/fiZ9mzV/LYvbVljC05gaghX4lHzGgH2DZh5k8=; h=In-Reply-To:References:Date:From:To:Subject:From; b=H6wAZB0RZzZIdUHJ9i9H8O9iPLuTfP+iBiFT0MhzsphaPYlY1vuaRkZVZ0y3XZHDP OFL/Kpv9LoY/x00aAR01cl6ThqfWAgL+yV8PJ5UI/xflIRH0iomKuaJYr0JN83/pN5 /N3EtQg6DSqhEjRo7h1/p0knReV89dcDwCL25v3+WsIVuCPaw4CHZqYJWsUto7Y0k0 GNUPND/Klgp7Jhssjmnr72dt+6UmXBiN/fM+f+Ml4unvepxpd6YmXsR1+3AinRv6o4 XpPIQjdLIgQwAJqecw42C++HO/6kw06+dUiNXpubAWMtn3olNYqK8jBVNIBRnGpzj5 UHuU1ObkRvzsg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A1296180542 for ; Tue, 12 Mar 2024 17:17:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 12 Mar 2024 17:17:10 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 61AB55C0083 for ; Tue, 12 Mar 2024 13:16:53 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Tue, 12 Mar 2024 13:16:53 -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:subject:subject:to :to; s=fm1; t=1710263813; x=1710350213; bh=Nd1U2Q0NTaK1CrtYqaspJ NCK9ebu8gYs9PIEXIP+0RA=; b=ep6C8peiknKfY71wVv4DU5nWocYy7UYdYGwGz agi/6S9mo5efqwPhQVzJOoUhiit12vefnC/CRpuHEZIW3YteZeMFbS/6bkyNpGtD CEHKl+frem69UIPXjirQQ9DFe2r6EjRAvopeWz5FBi+p0y1WcnPbN6TV3FtIelDb RIGasEKmTzRnfGA9eoWjg12UaUTm1HfutYPcXpI2bFM86Nsc2DAtYSF3nL+kb1AK Rx7A0XGGcAu6J/rF1md9uO4VUWuZtuRw0pZbZ5KuPtBDYqbMpllFoCIDQerPEsX/ xt/2zdA/+SE8IP0fWph1lPJkXGWE9GOOxdKLyr0BpACFK64Qw== 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:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1710263813; x= 1710350213; bh=Nd1U2Q0NTaK1CrtYqaspJNCK9ebu8gYs9PIEXIP+0RA=; b=M yZLgq0ST8Q9gqsuTZKwXbzUOiqVg4YS0qOXH2heqoWcvAcncYw5rbV37B2i1Anzc NO39s/MQ7InhG5GBKvbUsrB/66k0rndQXrG4OSoyFmQ8O+rzd+S0B+leaa0yQptf G/1toP1B/GZzcVHDYLB4y9Wf6B5Fbh3uecIMmbxRg2F1GWAqHMkDM+qTA1SGx6IU s/bdsfHBJSN5sk0yk1tvU8HEZe67AHeqXjA8z/uedobVt10hyaM5ARO4Vlfi+UDs +OqwQMbaeL6w218Wt5aVBwJF/xfgMsipVexhgO392PjI0ms7DZT2+G3fapaPh1pN JlO8K6poUbR4LXHY+OGeg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrjeefgdelkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeeggeehgfetjeehgefggefhleeugefgtdejieevvdet hfevgeeuudefleehvdetieenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhi vghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E44821700093; Tue, 12 Mar 2024 13:16:52 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-251-g8332da0bf6-fm-20240305.001-g8332da0b Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: In-Reply-To: References: <87171309-BD28-4292-A502-93DC720F445C@koalephant.com> Date: Tue, 12 Mar 2024 17:16:30 +0000 To: "php internals" Subject: Re: [PHP-DEV] [RFC[ Property accessor hooks, take 2 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Tue, Mar 12, 2024, at 4:53 PM, Alexandru P=C4=83tr=C4=83nescu wrote: > On Tue, Mar 12, 2024 at 4:36=E2=80=AFPM Larry Garfield wrote: >> On Tue, Mar 12, 2024, at 8:49 AM, Stephen Reay wrote: >>=20 >> > Hi Larry >> > >> > Thanks again for both of your work on this, I'm really hopeful this= passes.=20 >> > >> > Was there ever any further discussion/resolution/decision about the= use=20 >> > an explicit `virtual` keyword, and the related flag for creation of= a=20 >> > backing store? I thought it was discussed by several people but I d= on't=20 >> > recall seeing any eventual consensus, and it looks to my eye that i= t=20 >> > hasn't changed from the original proposal: i.e. it's 'magic' and=20 >> > `$this->{__PROPERTY__}` won't work?=20 >> > >> > Is that correct? >>=20 >> We looked into `virtual`, and considered it, but determined that it w= ouldn't actually work because of inheritance. Details are in a new FAQ = entry: >>=20 >> https://wiki.php.net/rfc/property-hooks#why_no_explicit_virtual_flag >>=20 >>=20 > > Nice that you added the details there why explicit virtual is not a go= od idea. > > So, if the parent class changes between virtual and non-virtual, while=20 > the child class is virtual, the only tiny BC break will be in the=20 > reflection as we will see a change between virtual and non-virtual? > > Alex I believe that is correct, yes. =20 --Larry Garfield