Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126551 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 qa.php.net (Postfix) with ESMTPS id DE2CE1A00BC for ; Mon, 3 Mar 2025 14:30:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1741012095; bh=0vTMJ6SMVjsaKpkCan3XxrLgOPJKnb4AblQ4i438/D0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Or5mPZILMqmLfHfOkqvYa0WDJxXmZ5zE976qE0YehcNn7wnzQPb+TXUnpj66nEVtD 4Q6K+zb+4YkPADnwF3P3c3G1q5BscmAlc/bVPJNQx0MRpjq5gWSvLOfEbCtV0fI2fG Smjwy3DVKj/vmaLMYYN3mjcgnZ4UrCEDs9PafJrOYNSWIHdBMlo42Ffa7hAEN9vdbp i+OxJTEfYROWy7yDNQUN3r8OL+1DB0sOH74HmPXjXDoufARWIG3EOLWIR2jtyKf2ip /SMpr6G3WbV3su6qflfgMB2IIB7c0qRxM1INKDDvq5sJXqGFhhNLjB3ZrX0Xs5awvE fMFuCgpbNcP9g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 16F281801D8 for ; Mon, 3 Mar 2025 14:28:14 +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=-1.2 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 ; Mon, 3 Mar 2025 14:28:13 +0000 (UTC) Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-aaec111762bso829698066b.2 for ; Mon, 03 Mar 2025 06:30:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tideways-gmbh.com; s=google; t=1741012249; x=1741617049; 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=0vTMJ6SMVjsaKpkCan3XxrLgOPJKnb4AblQ4i438/D0=; b=ivDlYB5BFbw11SyruJDymqNhVrrWRgmTiPDjw5nKl41QtBXQVJeufvTm+lcZYW1wFR HwR27pv+IVtcjVMK8iEPZCcLAEcHtvU80wbh36vK7iCtlGnXG9jeFlpJz5wuMwyal0Sh jLxCswiDMLZU/p9pqbQr5hF1Bxlo4BqZN4XU9cjSOdKcNypygr3jDXtfLo8ka1Db1UDf aVlroe8MQbBYqnm5nmDN9mHfKevz6YUuDuiECsyotc/Jk8xmrZ+qx97JK8TRD00NRNY8 iMP1LU8DJARebNyfK7YSz1Ovg7AbEw1r1tZMWSkvjLvNA1VCp8M5WdC0g43qBM0MtGW+ 1Vtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741012249; x=1741617049; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0vTMJ6SMVjsaKpkCan3XxrLgOPJKnb4AblQ4i438/D0=; b=vmuChB1++obZ4wYKy8qa7uFMqXXNbQyeikr8+ghpUCJC0bYzNxq2Abga8/at7pId/7 fsiLRO4IfsIYBMwJc+HSYyqCUh4XsCCoB6CXJGch373YclN/RpOOnHDzr7qscrHkNTBv GTU29aoto3YoJx+h3etgPCj8afjczMuvrLIKaRCXfqGVm1bjjkGQhFZPyUh6PY29E4Le GFTggnOL8Xpd0xGE5+gOPiDxWmNHvI8+LfaY+Q/Td706I479dy0IuCqb7TN3bUehTnMj ZbedDztzf4d80vKt62Pe6eeesxmeCt8WoU9tBlrdaZiFyY4iWLgNzlqfrN5Ou7+o/mfC gbqQ== X-Gm-Message-State: AOJu0YzWCxrp8l+UbZ+G4sb6Gbm1xY1inmhIYSe2gLqzrIDmfkBYsSts uzIVWorcezQPTA7ojADT+9+ZU99rtVr7avDCO/Nsvw46BR97JD/NdjdWS0G1IoC0gkbJf7V+FmN KpOLRcwAMAadKxbx2yfNxfEMRyo4zIUtOunfpcfPZa51BZUcFXYY= X-Gm-Gg: ASbGncuIpvIU0rHZI07uxFHYvjHF0BHG+rv8+kokg2IMLCRbKuc2LyjzrQQUm5l2rLG R0rAFPmnr3nH1+NZIaGpVtZzF8RSgF6PeQ7GhO4WUtHmSHt+uwDo9uu4Ox45Q9Cl3rugGp2NBns lxzhfKvxraGR14aikHsF9k4Z4y98E0MsQTF8mf2P3jjmyoxK/1g0unSmEp X-Google-Smtp-Source: AGHT+IGd9qczlv3gQqfwBSTOtvXImq/Jjpryk1zSEVnkxW6l+4i1QK4kTIATPotrxe6dNzOeX6C0OZiffhnJUYKzlqI= X-Received: by 2002:a17:907:3206:b0:ab6:362b:a83a with SMTP id a640c23a62f3a-abf25d8fceemr1714032066b.8.1741012248806; Mon, 03 Mar 2025 06:30:48 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 3 Mar 2025 15:30:37 +0100 X-Gm-Features: AQ5f1Jr_y3p9ZhkeDGOiFSV0HMyWgbKc6RVyZ1qpxdnLXSQNTYuxP6Kci0k_o8o Message-ID: Subject: [PHP-DEV] Re: RFC: Marking return values as important (#[\NoDiscard]) To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: php internals Content-Type: multipart/alternative; boundary="000000000000a3d9bf062f710037" From: volker@tideways-gmbh.com (Volker Dusch) --000000000000a3d9bf062f710037 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 29, 2025 at 4:12=E2=80=AFPM Tim D=C3=BCsterhus wrote: > Volker and I would like to start discussion on our RFC to allow "Marking > return values as important (#[\NoDiscard])". > > Please find the following resources for your reference: > > - RFC: https://wiki.php.net/rfc/marking_return_value_as_important > - Implementation: https://github.com/php/php-src/pull/17599 > Hi, Thank you to everyone who responded to our call for comments on the list here, and to Ond=C5=99ej who replied on Mastodon to the question if the pro= perty would be useful for Static Analysis tools: https://phpc.social/@OndrejMirtes/114040888791921128 Given that the thread has died down, and all points have been discussed, we plan to start the voting later this week unless any important point comes up. We have also updated the RFC to note that, if (void) is not voted for in the secondary vote, we'd special case `$_` as a discard outlet such that OPcache will not optimize the unused variable. Kind Regards, Volker --=20 Volker Dusch Head of Engineering Tideways GmbH K=C3=B6nigswinterer Str. 116 53227 Bonn https://tideways.io/imprint Sitz der Gesellschaft: Bonn Gesch=C3=A4ftsf=C3=BChrer: Benjamin Au=C3=9Fenhofer (geb. Eberlei) Registergericht: Amtsgericht Bonn, HRB 22127 --000000000000a3d9bf062f710037 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On = Wed, Jan 29, 2025 at 4:12=E2=80=AFPM Tim D=C3=BCsterhus <tim@bastelstu.be> wrote:
Volker and I would like to start discussio= n on our RFC to allow "Marking
return values as important (#[\NoDis= card])".

Please find the following resources for your reference= :

- RFC:=C2=A0https://wiki.php.net/= rfc/marking_return_value_as_important
- Implementation:=C2=A0https://github.com/php/php-src/pull/17599

Hi,
Thank you to everyone who responded to our call for= comments on the list here, and to Ond=C5=99ej who replied on Mastodon to t= he question if the property would be useful for Static Analysis tools: https://phpc.s= ocial/@OndrejMirtes/114040888791921128

<= /div>
Given that the thread has died down, and all points have been dis= cussed, we plan to start the voting later this week unless any important po= int comes up.

We have also updated the RFC to note= that, if (void) is not voted for in the secondary vote, we'd special c= ase `$_` as a discard outlet such that OPcache will not optimize the unused= variable.

Kind Regards,
Volker


-- =
Volker Dusch
Head of Engineering
Tideways GmbH=
K=C3=B6nigswinterer Str. 116
53227 Bonn

Si= tz der Gesellschaft: Bonn
Gesch=C3=A4ftsf=C3=BChrer: Benjamin Au= =C3=9Fenhofer (geb. Eberlei)
Registergericht: Amtsgericht Bonn, H= RB 22127
--000000000000a3d9bf062f710037--