Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127311 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 lists.php.net (Postfix) with ESMTPS id D27941A00BC for ; Wed, 7 May 2025 20:02:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1746648023; bh=tHYla2mtOKMxdAe+xlZsLNuN2nS5uZzplnQW5ZtH1kk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=oPP23JGiSEpNh9MFvAODZ99txwNBMh/nx5B/0hG6KupqMXnGTtH7+qSXo5vOGvf3P 9x7EYIykWB4MBs2lqQyEjLFyBOjAxGEh1d5VLix8yINKhnXSPY2yWPTzXDWegine0P 6quXyIvF4hf1XsZT0criEe5DMEaBVrfGLKkrCosChTXWRwwgZdL/Yzxc9qZ13GNAGS dwj0caRUmAPoXa8UNtBV9mVVaMCoVu1wfn3kom+H019WNLUMh5SXkWqMTCsKCz0Z+H P94uuqkKbnmtp4zAFAFSdkmRHBfIUjbsgd9JyvGhDhmgLyUfT8fF6ZsIj/Onq3wrJ5 82I3k4at1DtWw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BA8791801DE for ; Wed, 7 May 2025 20:00:22 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Wed, 7 May 2025 20:00:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1746648154; bh=In6J1jj7PmAWoMAx2LfL/WmIQeMxZWYkMzqQ+PvEulo=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=PdsaQ5eZySBowQceHXwxGXIk3PQHUZSYQUo4QCHtXU2pB5a+QZMZjy+D1scKyygxL tSdhHCqb5a8WOgrB5EXOpGSGm/Uor5zsMlBixCZaB/TtiSzUCFARegR0C6yVKRip9G O049LOL2gT6QSqrl21Zv8iMIb4Uro9C057tFfXXKU4eJsOojUVWUQcySB8g9osMrkq p7FvbyzcD4vAfnnPXC8kSMHA6NgzSfINf2RRR2bUeU5n2w1IdrGuiJh9qQJZjMW9uK 3uMN1oVjuApIz1hY5w9Mg0v0ii2Tae3zBSWyQmGK9w6usXU52qKGjd2ZELAMHiU/lE O22s/I7P4PEWw== Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Wed, 07 May 2025 22:02:33 +0200 To: Niels Dossche Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Initial discussion - more deprecation options In-Reply-To: <5eebf119-aeff-4d1e-8f84-0e91f7c89bb4@gmail.com> References: <5eebf119-aeff-4d1e-8f84-0e91f7c89bb4@gmail.com> Message-ID: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2025-05-07 21:43, schrieb Niels Dossche: > Definitely NAK on deprecating properties, which has the potential of > adding lots of overhead. FWIW: Deprecating properties is already possibly by means of deprecating a property hook. I guess this is an acceptable workaround to not require a dedicated support + associated complexity. see: https://3v4l.org/C6jRQ class Foo { public string $foo { #[\Deprecated] get { return $this->foo; } #[\Deprecated] set { $this->foo = $value; } } } $f = new Foo(); $f->foo = 'dummy'; var_dump($f->foo); Best regards Tim Düsterhus