Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126233 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 1CDCB1A00BC for ; Wed, 29 Jan 2025 19:32:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1738178953; bh=8CB3tTgjZN8S24YWBZI3gslwcA2+wz/+tRV+ZU44lRI=; h=Date:From:To:In-Reply-To:References:Subject:From; b=VVVjIsY5nuy3Y+xTYKZNfHRvzXs0S8T4Wwjyiq4lVhFFdZjUoRtJIgYYhCPSO2sdj 25nVbuwgGQLxza9tdEePUUpznfYqOv4PejJ4P8XUvVIhE5HrsLCEGYogkGqstPIosV FM5QLZ783vNXVdwwjCCp9UaLa+bGghQCmu9lP43ip+BecikZh4AJfLpSzsbxfP4A6t p86r4qAHuzeNBOZDUnXmEvIZ9PNHOWhUoNru/iywFYXuTGnhRBgPwNf3NR5n1fUC3b dOkz29Hl1BzpPThv54Mh8Zbd4doptq3qZDaYhlA22kyKJhgDLJ+/5/yJHhqml9xB+R AkVbeV9O2QYOg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E6820180047 for ; Wed, 29 Jan 2025 19:29:12 +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=-0.9 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh-b2-smtp.messagingengine.com (fhigh-b2-smtp.messagingengine.com [202.12.124.153]) (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 ; Wed, 29 Jan 2025 19:29:12 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id 8B599254017D; Wed, 29 Jan 2025 14:31:59 -0500 (EST) Received: from phl-imap-09 ([10.202.2.99]) by phl-compute-01.internal (MEProxy); Wed, 29 Jan 2025 14:31:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1738179119; x=1738265519; bh=8CB3tTgjZN 8S24YWBZI3gslwcA2+wz/+tRV+ZU44lRI=; b=tgDR+xlrlJ9NCNtWUR4g+H90Im TP5+xu2lk7hOPBlqhkdHJrDGL2ruCtkI+vZKbSIryCph6/gmO8UTZwIoSpJ+NTFv EWa66lbOisn8T16XZX4OoVrf1bBLgvLmLub12iLipxjhRl+I2i5XuoNNQ/yUJKdK jwWu0Y1RaKdx8RJx9y+2NxenTH4Te0VlPG6ggnhiE//jGonpjCfjQ3M+cRncfVU9 /ptXyOeGL/5Ot6pVhWp/85J/rMziPjPszEx7ph/n2BPc8REsFAygVPA/yM3uxs4y 1QQUMgA9RjS6OAi5sF8H0O9aFV8cqdWqFhsKjPpW4WYaqAJWqPt62/IuMGtg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1738179119; x=1738265519; bh=8CB3tTgjZN8S24YWBZI3gslwcA2+wz/+tRV +ZU44lRI=; b=T1MTF//R5TnxNW0YpQ7KeHcfRlbn24mkmMOu/GkHMgSFMo5cc5g K1kS3wS3FeH9SdBWf1K23SE4zhWySdls2JW+aP/FmuQk+7hE/sl8sS2IccKfzGYj EPntlawDiFqHMj/vjT//TY2XAcn36QqJ/6vQgZTPbwyOvHUnpZuMett35kPjfaxn Q1sG5TjZE37ekT1cpyiATKnnguCskWMeLN8fZgwhQMajjK3YXv2RM6eCSFCwaN2Q Z3Xc57+lh65ig82MYTdad7NuPLZ9OyXIsvZMyVOn8/lL7GPnJDt3bkxxT952Jwi2 PZvVBzJzRnUAkyhi/4DO2gWLtW8kun1n1eA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdefkeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepofggfffhvffkjghfufgtsegrtderreertdejnecu hfhrohhmpedftfhosgcunfgrnhguvghrshdfuceorhhosgessghothhtlhgvugdrtghoug gvsheqnecuggftrfgrthhtvghrnhepheeiffekteeljeeufeejffeuffehvedugfetveef ieejveffhffhgeeuteetffelnecuffhomhgrihhnpehphhhprdhnvghtpdhgihhthhhusg drtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehrohgssegsohhtthhlvggurdgtohguvghspdhnsggprhgtphhtthhopeefpdhmohguvg epshhmthhpohhuthdprhgtphhtthhopehtihhmsegsrghsthgvlhhsthhurdgsvgdprhgt phhtthhopehinhhtvghrnhgrlhhssehlihhsthhsrdhphhhprdhnvghtpdhrtghpthhtoh epvhholhhkvghrsehtihguvgifrgihshdqghhmsghhrdgtohhm X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id C48F8780069; Wed, 29 Jan 2025 14:31:58 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Wed, 29 Jan 2025 20:31:38 +0100 To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= , "Volker Dusch" , "php internals" Message-ID: In-Reply-To: References: Subject: Re: [PHP-DEV] RFC: Marking return values as important (#[\NoDiscard]) Content-Type: multipart/alternative; boundary=4594ffa343184238b4b2fbd63c9259d2 From: rob@bottled.codes ("Rob Landers") --4594ffa343184238b4b2fbd63c9259d2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Wed, Jan 29, 2025, at 16:12, Tim D=C3=BCsterhus wrote: > Hi >=20 > Volker and I would like to start discussion on our RFC to allow "Marki= ng=20 > return values as important (#[\NoDiscard])". >=20 > Please find the following resources for your reference: >=20 > - RFC: https://wiki.php.net/rfc/marking_return_value_as_important > - Implementation: https://github.com/php/php-src/pull/17599 >=20 > Best regards > Tim D=C3=BCsterhus >=20 Hi Tim, This looks promising! Why do we need the (void) cast? Wouldn't "@" work and avoid a BC issue? =E2=80=94 Rob --4594ffa343184238b4b2fbd63c9259d2 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Wed, Jan 29,= 2025, at 16:12, Tim D=C3=BCsterhus wrote:
Hi

Volker a= nd 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:


Best regards
Tim D=C3=BCsterhus


=
Hi Tim,

This looks promising!

Why do we need the (void) cas= t? Wouldn't "@" work and avoid a BC issue?

=E2=80=94 Rob
--4594ffa343184238b4b2fbd63c9259d2--