Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115895 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 49357 invoked from network); 30 Aug 2021 11:38:22 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Aug 2021 11:38:22 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 61649180504 for ; Mon, 30 Aug 2021 05:13:47 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS12876 195.154.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from smtp-in.fusiondirectory.org (smtp-in.fusiondirectory.org [195.154.20.156]) (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, 30 Aug 2021 05:13:46 -0700 (PDT) Received: from smtp-in.fusiondirectory.org (localhost.localdomain [127.0.0.1]) by smtp-in.fusiondirectory.org (Proxmox) with ESMTP id 7E446101872 for ; Mon, 30 Aug 2021 14:13:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= fusiondirectory.org; h=cc:content-transfer-encoding:content-type :content-type:date:from:from:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fusiondirectory; bh=0U8uliMzaUeAea42yF8d2fL2+CPYU04h/j24AcnE2kE=; b=KCGqzivzMNdd +vnCuU3oAj9bjJDQ7uQJ8eVp+vt+G/291WVO9/o5zqFtSAj/1GzKBnoOhwBzNNNY EhmYwLYVHKxhF/pUH+K0hBZwaSWM3hqhl74B/TP8NsJPXBcVvBvwGbm1LrCao/rP znfzxBTWb5f3iRPq5rhsYWAUdA2EtbRX7W3Yz7UAt1xwdmqoO/zi7TfYie15wdIz M0qx1LCoouVaLytarCmEghjLyfySJZp58E+jcazrU9UNO9Qu1DPBWshIFcEPAYX+ QiWG4oz07H9plHZRYF4wGiKtrJu3RxRkID+6hTybdJgxD2omZlSwdAgdS0MWwMuG H4c8o0Wsjw== Received: from smtp.fusiondirectory.org (smtp.opensides.be [195.154.20.141]) by smtp-in.fusiondirectory.org (Proxmox) with ESMTP id 4C915101048 for ; Mon, 30 Aug 2021 14:13:44 +0200 (CEST) Received: from mcmic-probook.opensides.be (63.120.199.77.rev.sfr.net [77.199.120.63]) by smtp.fusiondirectory.org (Postfix) with ESMTPSA id 1E4F725CBC3 for ; Mon, 30 Aug 2021 14:13:44 +0200 (CEST) Date: Mon, 30 Aug 2021 14:13:42 +0200 To: internals@lists.php.net Message-ID: <20210830141342.2077bcfb@mcmic-probook.opensides.be> In-Reply-To: References: Organization: FusionDirectory X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Deprecate dynamic properties From: come.chilliet@fusiondirectory.org (=?UTF-8?B?Q8O0bWU=?= Chilliet) Le Wed, 25 Aug 2021 12:02:49 +0200, Nikita Popov a =C3=A9crit : > Hi internals, >=20 > I'd like to propose the deprecation of "dynamic properties", that is > properties that have not been declared in the class (stdClass and > __get/__set excluded, of course): >=20 > https://wiki.php.net/rfc/deprecate_dynamic_properties If I understand correctly the RFC, in these two classes: class A { public $prop; =20 public function __construct() { unset($this->prop); } } class B { public $prop; } The property $prop is not in the same state in the end? What is the differe= nce? isset returns FALSE for both, no? And property_exists? Is it something that was the same before the RFC and would be different aft= er, or is it already two different cases and how? C=C3=B4me