Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130108 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 4B1911A00D5 for ; Fri, 20 Feb 2026 15:39:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1771601964; bh=mD/+U6ePTq0E2mo2ZHNn+BNIMDuFPiDti2CDnqRutJ4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=LEAmMz3tG7egpmtd6jCv05O4XDAOrhW1FiSFotS7AJV2Xp+qyc5aDl7rcBn5Ef021 QdnCWwQDFafWWBLT+JmCULBsVh+MbhhtQlhJzRGksBpz2h4sfqZ9b+J9OHnMFULTLC srchp9CeVP4xNUUat4x+s3bnEQoZVBAvHzZXG7RVefsy+biVoTpUCGCy1X+odTL+9g qfBn3i8Nyd+HQxY3OqJV/b47pJcD68Cm2kU202cpr/sGWGdlh5VEG5cGRnLjc+K73M pEkC7ye4ssKDy22FXFIMhuPMNMqYXkRFIpwNf1NLiGcHsnnhnptSqt4DInPFDuIgqR VI5iwH+GBwbDw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 56D5418037E for ; Fri, 20 Feb 2026 15:39: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,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-oa1-f45.google.com (mail-oa1-f45.google.com [209.85.160.45]) (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, 20 Feb 2026 15:39:21 +0000 (UTC) Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-4152698e745so793446fac.1 for ; Fri, 20 Feb 2026 07:39:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771601956; cv=none; d=google.com; s=arc-20240605; b=d/Z0n2dUEl6bNnMwnLwrFiShqn9gTKPCSf0Q5+Mh+9VIhSfFHV23SXrcxITiz+RSJb kMnqg0enr9ooTvFZBRr/eWXBgc89GZOPSFDD5qRivM53BeepEOipIctOFt7gOUlP2y2b Z6zZ8AyaomfpRQivcxizI6pRe2+mfv9ZRASsrFNE3G8l4C58FcEKlr8/XHaHJH3f3jD1 BqjnqTu3N4Y/7z+RJaRDoVjqeKqafgWuM0Yx7++SbQbCFSZQMDiA3s6WClW6Dy9wKTOr 4XPblYEKjJ3DWL9dRTw4HFSEN/k+QUprY06GXt+9bMu3F1MlysQ98yACvESsh/dKgCKb A5gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=mD/+U6ePTq0E2mo2ZHNn+BNIMDuFPiDti2CDnqRutJ4=; fh=IzkeoDOvVwhu1UbQgrCePI3qv0ZWgfJcvis737qFvdE=; b=GbOmT9vTwVVhUu/YoVdHrSCln90EBCB3tEOqjg5dsy7xI3xJPhk7AjQVOpcDESr7sO aDXMvG7WH0d7mGmZM3I4ZUJtq9ixrLnqCOErpaQkGHMBAYLhtesXApXFRCPNHfZCn9Bo zgvf3dE42+DELNi3ot/ZwsPZiE5kkoLNDzsMqEYNiZ19Sp0VBJZDRQXwZDbGILkyp/7v cBcNB/8/Mo0izw5XQbYID5mgTNx4oS5mlhSVZfB0XGXIRMBIV9gmu79e+Ks0x4pMrh+Z SahJy35iq+IIFJ5KEAwViyRMyfJ+BEUs1YU4dQl84iqe2CV4PFCZ+q/yHdH/rVc8MYWt 3RhA==; 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=1771601956; x=1772206756; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mD/+U6ePTq0E2mo2ZHNn+BNIMDuFPiDti2CDnqRutJ4=; b=jxljYaJeZG4fOLbft0GuQLFNHp0+byCICImUTG/zlOB/RkZfVN41tNs1GUT19kPgnY Ey8cj41CVSyMLA1EHjYhPLY+xiMWUC1/DOluY/eXBS9GLP2Fvp445thLiPkE5fPoIktE yopKYjV+lG3GDVW3Kp7wHGORfbXWCoJxhzUn3kjqoGo35j7IX8KNXczy/ZgO0AGN5XyM w2nqxF/fnNkOtBHaL2WWkdbnaekcIZihbel0ljM2Yh+/WLTesxNAGgmcFi3jxtss9K5m n7g5YyIm2UqWablCH21nPMRuivPVXiH0ZnCDrsCHJ7aJNmN7m0ANsWvq/PajILH3f+5P 2Tgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771601956; x=1772206756; h=content-transfer-encoding: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=mD/+U6ePTq0E2mo2ZHNn+BNIMDuFPiDti2CDnqRutJ4=; b=r3iiYA2jcqo8KsiSPpTf4s5co0BGNV7B5pRF6SOkgFu7dRj7/EPnNEc3rhETN54RZy 5Q0NVzEijzzh6uyqZo0EyH4LlnojTHz5Q74wpEINMxMKYsLBwc7I6Z5bTFYWSJaqcVpK jSWzN2OQm6Bxbh5FlOPE6UxFQQuzh4szHlD0NzTylZWSVyhXEf8Q6W3zobx9L6i1rdz/ 7kAUdORCITjKHokr4OlO1XwQthv4mAdsW5mm8Bnx4L+OL6NzBVxzaTyrrpC0Ktsi+NT0 f+PkN/tazuhkhLkv4BFhXuQV70Krr3PVx0S2cgSoZ3uAWuauv/wfUToZcm7tVWJesaBF lgUg== X-Gm-Message-State: AOJu0YyZE0aRypYndzATSEveXb5ns1H4pKGMsY5APwakwnIp0trzA9zP NU4tOcz3ezjDhXTf5bJ16biImYXo2DbjJEe1/wt5eFHdg3yAO/W8HNi4Rw4rQW4NVg7b+n/iDJG ublND9mHrD97QGKT1GJQ4sagAuVIxLys= X-Gm-Gg: AZuq6aJqAh2cBwdNg2xjVkD2mLV+Jrs2O4YvhZni9m0MDAN2Vib8Ul8LMvUJbcaPHYS BS1LF/WvKbrreTfQiKHRqfzDs561HY2NX21f+btVdBEUTFj86TVz7vGJvqzFCD+QgvAHiYGrsoM Q85J8Zn5KcWuPjdWC6HJa6t3NMQ4ROmF/07mEOHb2Orn4X29PTEgt6c21r9dKYIdH8KZmqY9cF2 /4mj2qi6ER2Ee36E1Ebx50AW1PTEf60vSW30WSZVgKu4TyGv1sudK9jBcQoHCWzQO+qIaTx9XWg UvPBPvWaMRCZ/SeKdojPj6J6DHXQNDJQLWwjJLGnsMZgxQ== X-Received: by 2002:a05:687c:40a7:b0:40f:c84:e59b with SMTP id 586e51a60fabf-4157b0b56b2mr34758fac.30.1771601955963; Fri, 20 Feb 2026 07:39:15 -0800 (PST) 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> In-Reply-To: <565970ab3a667958c340a9094d53357b@bastelstu.be> Date: Fri, 20 Feb 2026 16:39:04 +0100 X-Gm-Features: AaiRm51jGbi8r416hGAE7kWy7yMA3xYFeWaxur_94gIeuV2ogTsO2IAovvlMGqc Message-ID: Subject: Re: [PHP-DEV] [IDEA for RFC] let the "new" operator fail when the __construct() function returns a value. To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: mirco.babin@gmail.com (Mirco Babin) Op vr 20 feb 2026 om 12:35 schreef Tim D=C3=BCsterhus : > > Hi > > Am 2026-02-14 15:00, schrieb Mirco Babin: > > This argument has convinced me. And writing it down helps clear my > > mind. > > Great, thank you! > > >> All that said: If you are willing prepare an initial RFC Draft based > >> on > >> the official RFC template (https://wiki.php.net/rfc/template) and to > >> go > >> through the process of officially discussion the RFC, I'm happy to do > >> the =E2=80=9Cpolishing=E2=80=9D work as an official coauthor / mentor = to make sure > >> there > >> are no missing bits or other mistakes. I'm also willing to get someone > >> to do the implementation (potentially I'm doing it myself). > >> > >> Do we have a deal? :-) > > > > I have prepared a RFC at > > https://gist.github.com/MircoBabin/aaa574297c8d1baa879f19c99ce28e93 > > > > Are you still willing to carry out the implementation? If so: > > Yes, I'm still willing to help out with the implementation (or to find > someone to to the implementation if the RFC passes). > > > - Should I mention you as coauthor? > > For the =E2=80=9Conly warn on new at runtime=E2=80=9D variant, I personal= ly don't agree > with the proposal and thus don't want to officially co-author it. But > I'm nevertheless willing to help with the implementation and with > feedback to ensure that the RFC is in the best possible shape > policy-wise. As previously mentioned, I believe it should consistently > warn at compile-time and not make a difference between =E2=80=9Cusing new= =E2=80=9D and > =E2=80=9Ccalling __construct() manually=E2=80=9D. > > > - In the first chapter, what wording should "Implementation" be? > > - What wording should "Patches and Tests" be? > > It's okay to leave that out for now in both cases. An implementation is > not necessary to vote on the RFC and it can be filled in later. Thank you for helping out. > The next step would be registering a Wiki account at > https://wiki.php.net/rfc?do=3Dregister and then request RFC karma, so you > can create a proper RFC page and =E2=80=9Cofficially=E2=80=9D start the d= iscussion. Ok, I have done that. > Having the page will also make the RFC text much more convenient to read > compared to the Gist. > > I've taken a quick look at the text and =E2=80=9Cformat-wise=E2=80=9D it = seems to > contain all the necessary information. Great work! FYI: I used the following procedure for previewing: - Goto https://www.dokuwiki.org/changes (or some other page that allows edi= ting) - Choose for the pencil: edit this page - Paste in the gist - Preview Kind regards, Mirco Babin