Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126283 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 B46C11A00BC for ; Tue, 4 Feb 2025 11:10:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1738667288; bh=Xj2SwDAh9khz2exgcR6ek46aO5F7B5xMUmmgENspUBs=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=dGYtH0hg+q+Rz8R4z+BKUM4dnSV6ckxpCpyL0g1xbvuAMOhsr8DcBYvrd7rICbHL2 IxcXpIhzItSsGFkyMI0LPHoaBc7OujjdIpnEvOGPJxFoGJ8MqDLxwk8IZ2+sB2nVDo KXaiRxSDcuSatYfb9AM461RP4RocLc0wkoxUHn+gfvWE4t078k5HUFLCyyyWj/oSi4 6FZ8PfsEa8LxoRaJApwNKVR4ihAxvondVHUF7bhQnr3bDE4GEwAxbDc99K0+JULm0E k5SFnyw54fnrzbGByV7CTQ5V6Eo6AuJ3qoCCjHTvBC7tbD0OlPMcU02ilXsGFq9JcN 3bhTmi4tSEJ+g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AA1C018004A for ; Tue, 4 Feb 2025 11:08:07 +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=3.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_PASS, SPF_SOFTFAIL autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) (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 ; Tue, 4 Feb 2025 11:08:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1738667452; bh=Xj2SwDAh9khz2exgcR6ek46aO5F7B5xMUmmgENspUBs=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=SNEWvc5R1jgcIkfb+SUbM6WUd0twaw+3T1/ydL2Fl8tLv7lTr5FAzYw/iuu/SxalD BKOZIQeBj1sw2MBiutRDNocrFV2dbbThwJYRWjHRj5iCRndseG+ejZw1TeZIRuQ1nu H0R1n0KJvlu54wzgxw1/kPJGqcR3fHhT2MGpOC7IjMZh9S3aPcaf1yCz9Egfqsmn9J f3LCKAvhgZcup90BSZT+wdX7aI2fcXVHk7gdTi4IZXdTV4mzEdAp8jYwjH0KvWJD6L kSSmCQrKQHz0WyoqABF29t28o+NNJpO9jzsAP1eZ4f1GZwT05cpEQwjXpoIecqsnt8 8Ps08EI8zr0Fw== Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id B240D10C10A; Tue, 04 Feb 2025 11:10:51 +0000 (GMT) Date: Tue, 4 Feb 2025 11:10:51 +0000 (GMT) To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= cc: Volker Dusch , php internals Subject: Re: [PHP-DEV] RFC: Marking return values as important (#[\NoDiscard]) In-Reply-To: Message-ID: <7175feba-85ea-ce60-f89c-36ea1a7ed574@php.net> References: Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1010792254-1738667451=:27891" From: derick@php.net (Derick Rethans) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1010792254-1738667451=:27891 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 29 Jan 2025, Tim D=C3=BCsterhus wrote: > Hi >=20 > Volker and I would like to start discussion on our RFC to allow "Marking > 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 Looks reasonable to me. What's the reason why this emits a warning though, instead of throwing=20 an Exception? I'm sure you thought of it, but it would be nice to have=20 that consideration mentioned in the RFC. cheers, Derick --8323329-1010792254-1738667451=:27891--