Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130808 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 46A891A00BC for ; Fri, 8 May 2026 08:44:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1778229858; bh=3BF08RU5drUNjot3k9nKMGC0ip+BhtyhfFBveNY9Twk=; h=Date:From:To:Subject:From; b=i/AJfEiSyHyG1haXBtk5Kfuy+H86S/4zqPThxtc50n2WvyouW/nSpAHFByNYzLCiw +7GTi0AgsIZP15AJyTNGEl279MK+1qg26Ty7VLb07g5uronDFvm6+MDszAnq7TR2UI Y/X9wol9s1zl0bA/4A51XIHEPMWkoBO/mer4rKW7z278vlHEUwBADIpwG8mrmtfr2c +Q/7MDPdsMygfvHmyU4wLe+zB7ih4sJGxjkCQSgZYSCtbhAivQ9fvS0g2CF26nikWw Cs7+eX2NubkeOYou/ICWskYBeMCM1dcHNftvJ3pHRICkzLuGVwINMoUsH+xXz0fYr+ kK44sk8Ok5tVA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0D931180547 for ; Fri, 8 May 2026 08:44:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) 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.1 X-Spam-Virus: No 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 ; Fri, 8 May 2026 08:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1778229850; bh=AWywUHxColdqVPdJI9NJzU9whXYGidimNuWpWIQ7NDA=; h=MIME-Version:Date:From:To:Subject:Message-ID:Content-Type:from:to: cc:subject:message-id; b=MWQiATVMeVVTzTr3BRbaD8qxZ7F3qMupmi8uxP+KBwW4FfxpalIstkuHz0jY7SEt3 swdCUTQS5437XRrktXNmfrEC5SY0KfBwsU2PZJkxMbs7cm+7meoERBjTFF5jHXoY3C vTNX8q25qUW++BZ3XvAyhgqODIZM8pTSJjxKZsa3QgCHG7Ruc2zKqYXoNnuULnleex gfylkNbm+P2U3+om21OX/x8rin7tott1x1jshQiHwZ0/N87vfclhD3UxCL0xfeJ6DC j7yA4XmWYloTQCXWozW3NtTsJK+7tG0td5+MogIqxBUkhwq/tO2UKg1TiSPW08wp8u sJqk2g7Winu9w== Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Fri, 08 May 2026 10:44:10 +0200 To: php internals Subject: [PHP-DEV] [RFC] Deprecate returning values from __construct() and __destruct() 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 following Rowan’s request from the earlier “let the "new" operator fail when the __construct( ) function returns a value” discussion [1], I have now created a dedicated RFC to deprecate returning values from __construct() and __destruct(). Please find the RFC text at: https://wiki.php.net/rfc/deprecate-return-value-from-construct Best regards Tim Düsterhus [1] https://news-web.php.net/php.internals/130270