Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130271 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 D92031A00BC for ; Sun, 8 Mar 2026 16:33:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1772987604; bh=urkAyQ9ujKzHif5Yipi4lrdcq/XUkMeAQeAXoe3RdxU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=B5juXcAuZXaTsZakSrmumqGHLz2TZfzN6QRLfrVMOZxN0FDgb3dTT8v5fKvTFqYPk unyrwe8wYVh1HbPRFbRw5wmCOQyX9BNK3g5uSnlMi0Le+Nhv3bHHh2mEz5n3W7uO6c Je41WnQIa+mRwpdii0kMWkMmktSutynlmOc/2h64OFH3Wml+lSW8b7B4Sh4ujaDK/e ZulJKUTJtMpa1dsxQ3Io9vAuoVHXg9Sc+HgCoLs4KidxZBcBmA7U4srV5Veh/JXMLl WeHqGHN6F90dnza8/5YnCsbpwqxrQB/Q+LLVrmB/c9g4FjkvIHM1qXiCufhuUaVUOz 9KfXKC+bKz9Qw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8A529180048 for ; Sun, 8 Mar 2026 16:33:23 +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.6 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_50, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-oo1-f50.google.com (mail-oo1-f50.google.com [209.85.161.50]) (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 ; Sun, 8 Mar 2026 16:33:23 +0000 (UTC) Received: by mail-oo1-f50.google.com with SMTP id 006d021491bc7-67a02dcc450so6104419eaf.2 for ; Sun, 08 Mar 2026 09:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1772987597; cv=none; d=google.com; s=arc-20240605; b=BMWZnx3niE7tMeBMgvH24VkrjExjMpXI7JNlpHntUx3StvFYyMVRY8XrpDyP8pI29A wLf1AooCtoAfjfbrJHob+p4UHH3s8/laUDS7/YQM3kqsuK8BQ0rq1uGd+7kryFjFkbPs f4NMXOlFKEjK2NqBCGY+/rtgAgovduhHePgVROobYrJxIjYzf642MXaSNmxZiA1t4JQy 5m5NXr5wwzC0HiajtLSDg6oNiB76jB53XlfKegr6/WOowYToZ2VFhue5BPY5zyYRNhon byd7yQ/jphTSrJno3gdQRV8Vwksmev2x/9V5HeHqZz9JdWLEwgnFWzPmtVAhEVDjR4sh QLWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=zG9j2ZX0+waafEyw7CDbYkwXbgI2HgaPkJV8IuXFSds=; fh=pSo5+3z4tpDgPunoSvr+JEU1EAPScZE/M8z98BKRTcA=; b=Jn24mibR/GvEDd+Vbj0OnptxIkoeKuodIYBavvMl+wZ4bVwsV2v8gDHv3E58OCX3Gq IaIQx6PE6z6aOspT2LHmjcxBrJB743M8FYIvKxC+3mdWrc1b052GpKV6CmU+lZVYKCpW EO3zx8R9q4IpVjH9d53itB3YvmTFK5h6pe057/JFCUDVWZIPOFJkeAMTn7OG924yHQzJ qhX2XSM2P0hfWA5qLrfohMc1vMuYqsjVbPjhtUXEqePFWEqnWSBc2e56Ds6IeG106U1c IQL+HGw+c2hR8JdDdMAncMGAZMdSa95vXHF1HxlmzPzlI2Yv1o6mxg/QP7RYoYDAZWlq 94NA==; darn=lists.php.net ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772987597; x=1773592397; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zG9j2ZX0+waafEyw7CDbYkwXbgI2HgaPkJV8IuXFSds=; b=QlmO032ij/iv5jGoz/q4GSdyOG00dVgLym0p6wGu3QINvs3avp/4eKjOEP43nj8YSE bCrHRTxmZa5MuZcWAyZ1pG5DH8PdcxF1M+aCDFZz0moFBUnGNuhWE/yNGiC4NQDjs8rH GLmzQNLK2pN8LcQ9t6JwHqX7OYsF8zqO//nP293Qt/1T4vYZLNE0znO+mbJI0d4BS2HP ypY53ohoGvG1VsgQTOQZO3uqefsWp4h09qDl7bKU1bT6fN459LuaWsITBb/zxgA/7DfZ oPsr6fh7Sn06ELIQl1D33r64QUACfFUEemSTlN9Ry0jq6WEMF37VflB4GembV1XPxNeM F5VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772987597; x=1773592397; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zG9j2ZX0+waafEyw7CDbYkwXbgI2HgaPkJV8IuXFSds=; b=WxSjwTdrAHTBjvuqsBT1sY12vjSjV0SLih5DQaWczKqRCWqJ7OobpxcltIfHhi+X5t LdQ/tIO/37Jbp26Ykt9dKSp/0gaHtAWwOGMOdgGFWrjugKlxyQ5VVHJ6ptwtitbwf4s7 kVnwdKNT9EWVyH/Y/LAFd9KW+GynOWYE+S2TzeTW91WE9Ay8CBCQyUaUmpo4APRd+wn1 2KIwgpD/2hB/FR/aIHMJfAkySNw3n2/DoLIt1At+6v19QCcQ4A6jjzcCMF0SH8GqOc73 wZttjHkVkjD2LUCorROO5uYhqVhXhX7Zuqhn61siFGGaNa8Cr4RJucsxhOjdZt1GhtV/ 1GGA== X-Gm-Message-State: AOJu0Yx4GZbtFWMGv1e7Ty3Rp1wsE/n/XJqCT1o9oyYcOPpDVBEbGFq/ QDioivdR2Nw4Zr+na2UvA2VVk+cGllxHWLd9oRrth49mtr/fif5PZPY1i97WpSEcUx1mvMHkq+n X8hTbe0/Q7zvbzK4XgQ5zawTulcnXKLWnYw== X-Gm-Gg: ATEYQzxiQg05KscPpwBPyIniqWqpQ/asviwuAQ7lgeO7m2226kR2av6HIl7OdCwZ9JG WPKktX51X3LcJpd4DX7toNen71F7YOnVGcTQjWxfjj92p/Tdzq0Otoa0bAtHpd50GfCBjJzmGbs 5IY4HquPr9Z0szfhR3zr5YaECXJNbBEpIxkQEGLWl9bkHhH8f/WoAuicDobZxg9n9U3hLR+ZW+n gtthww6HrF5pkVjSn8b4AmsqYsC4996uH29NRjrG2byXm3UNjf8Bv820/IPX316IDZQOwNVjOC4 bKDsmxurhENKOWCmG2y1fAWNwLDO56FknfvnZTzPgtKyhLfvsnwoS5MIq7s/r/czCEY+ X-Received: by 2002:a05:6820:178a:b0:67b:a8c3:6c9f with SMTP id 006d021491bc7-67ba8c36d9amr2947729eaf.18.1772987597505; Sun, 08 Mar 2026 09:33:17 -0700 (PDT) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <0ece40da-762a-4190-9cc8-23ff432fd441@bastelstu.be> <565970ab3a667958c340a9094d53357b@bastelstu.be> <583462DA-F68D-454D-98D5-F286ECFB1318@rwec.co.uk> In-Reply-To: <583462DA-F68D-454D-98D5-F286ECFB1318@rwec.co.uk> Date: Sun, 8 Mar 2026 23:33:04 +0700 X-Gm-Features: AaiRm51fiVm2JtSl9jeiuUfeT9h75_C34jvhi-PqufNtuXCawW_20nQ2pOwsNaY Message-ID: Subject: Re: [PHP-DEV] [IDEA for RFC] let the "new" operator fail when the __construct() function returns a value. To: "Rowan Tommins [IMSoP]" Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000f0c884064c85d733" From: pierre.php@gmail.com (Pierre Joye) --000000000000f0c884064c85d733 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Tim, Rowan, for that specific return value in constructor, as i mentioned earlier, I think it does not even require a rfc. Not even a depreciation addition but as a courtesy. I did not check the git history but I am pretty sure it is a forgotten part when moving away from class name construct, and it is clearly documented as : void https://www.php.net/manual/en/language.oop5.decon.php this is a typical case the rfc about not overdoing rfcs or bc for bug fixes or similar. best, -- Pierre @pierrejoye | http://www.libgd.org On Sun, Mar 8, 2026, 10:13=E2=80=AFPM Rowan Tommins [IMSoP] wrote: > On 7 March 2026 21:31:19 GMT, "Tim D=C3=BCsterhus" wro= te: > >I plan to pick this up based on my suggested implementation and have jus= t > 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 > > Hi Tim, > > I appreciate this is mostly just a stub to revisit later, but for the > record I think this should have its own RFC. There's a risk of these bulk > RFCs becoming a way to bypass our normal process, since each section has > much less detail than would be required for a standalone RFC. > > In this case, you will be revisiting a topic where a previous RFC was > rejected, so it's important that there's a clear rationale of why either > this is a different proposal, or the previous arguments no longer apply. > > Regards, > > Rowan Tommins > [IMSoP] > --000000000000f0c884064c85d733 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Tim,=C2=A0 Rowan,

for that specific return value in constructor, as i men= tioned earlier, I think it does not even require=C2=A0 a rfc. Not even a de= preciation addition but as a courtesy.=C2=A0

I did not check the git history but I am pretty sure i= t is a forgotten part when moving away from class name construct,=C2=A0 and= it is clearly documented as : void=C2=A0

=
this is a typical case the rfc a= bout not overdoing rfcs or bc for bug fixes or similar.


best,
--
Pierre

@pierrejoye = | http://www.libgd.org

On 7 March 2026= 21:31:19 GMT, "Tim D=C3=BCsterhus" <tim@bastelstu.be> wr= ote:
>I plan to pick this up based on my suggested implementation and have ju= st 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_valu= e_from_construct

Hi Tim,

I appreciate this is mostly just a stub to revisit later, but for the recor= d I think this should have its own RFC. There's a risk of these bulk RF= Cs becoming a way to bypass our normal process, since each section has much= less detail than would be required for a standalone RFC.

In this case, you will be revisiting a topic where a previous RFC was rejec= ted, so it's important that there's a clear rationale of why either= this is a different proposal, or the previous arguments no longer apply.
Regards,

Rowan Tommins
[IMSoP]
--000000000000f0c884064c85d733--