Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130266 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 447B31A00BC for ; Sat, 7 Mar 2026 21:31:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1772919087; bh=tAYTfGIHHdUc/fTBEgqfMv2NSlNxuaTItzEmMgpN+vE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=UtsO02COPnFF2syfscv4Uo1yHwCrJU5Mtsi/aQho129VlDk8N5oMDrhHR/n/Ix6Am wQVf0yLxuNbPiTVsXPZnWwZv0p/NKcGclgknCQT097lf+gNBbc89LnMBkVyNC11bPC D4Z1oKcn+T5mCPcrMCgRuxGYdJK4PjnKuUbLH00wNI3pNT0oaxJPaE4dDsSECMYwnm s7S4rPvQ6lVslK4NGpZgQJgc/fPGowfA3rVSxciTFpFkcI3+j/VNTnMYWGQBabm/XT llV19gSMWu4HlUbKmRO+Qwz5JmbnQLxAb05jNhD6RughqFVFMpuW8wBlCnrl5Pg7Qk ocD5FoqEqLfRg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 30A3918060A for ; Sat, 7 Mar 2026 21:31:27 +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=-0.2 required=5.0 tests=BAYES_40,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 ; Sat, 7 Mar 2026 21:31:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1772919080; bh=8Bn8TPL4YHYU5nvcdl0aZpbPvEkiwg3vYxl3ibRBzs8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=iqBn6q1g4sMFmrNwdUlpdMVV8++GcKkhpBV6G/smGffjYFO7hkRDirE8KOaY7XvE2 yRDfeDVjBb6Uk9OnINKXfA1rlPC5ULblKeAkQJQRl26ISD9e2mxMelUdhJ+uUpUF9l lQzhwD/3Qz5p1CJrh9e6B+xW7QWDmyT2JyqJP6d5zZL2IUAIYqUVXjRnPqeLzQ93Nr lrTuvxgqdQaqgkn3ocW/ro/Hcy0B9+FSDCQvo4QdJ2haep7EkNx9pI6WVbc1rMG1OY y5okW5WXaO7yBnXGXdYhPO4/mhfS7iyfSGL3oH4Wjru/eZZbuv80b0o+Fdol5GmF56 KSW6Jhkw5J5Zw== Message-ID: Date: Sat, 7 Mar 2026 22:31:19 +0100 Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] [IDEA for RFC] let the "new" operator fail when the __construct() function returns a value. To: Mirco Babin Cc: internals@lists.php.net References: <0ece40da-762a-4190-9cc8-23ff432fd441@bastelstu.be> <565970ab3a667958c340a9094d53357b@bastelstu.be> Content-Language: en-US In-Reply-To: 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 Mirco On 3/6/26 14:58, Mirco Babin wrote: > I updated the RFC at > https://gist.github.com/MircoBabin/aaa574297c8d1baa879f19c99ce28e93 > and changed the status to *rejected by the author*. This RFC is not > implementable; the why is explained in the updated RFC, first section. Thank you for the update. While I believe there still might be a misunderstanding, it wouldn't be fair to your time to push further. Nevertheless I really appreciate that you took the time to write an RFC document and to participate on the discussion on the mailing list. Your RFC also provided some insightful examples that will come in handy for future reference. I plan to pick this up based on my suggested implementation and have just added the proposal as a stub to the PHP 8.6 bulk deprecation RFC at https://wiki.php.net/rfc/deprecations_php_8_6#deprecate_returning_a_value_from_construct Best regards Tim Düsterhus