Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128033 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 E374E1A00BC for ; Mon, 14 Jul 2025 12:44:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1752496942; bh=Nec5JWuVpUfZ6MrHdmzCuRC1hC9YBl70bVi5q2cSnJI=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=hcfUq1kGYvkUoRONGT31slrk3edIasJciM6CXuDtANhxj3k3Cc+OEkPse4sMQwtVW l75riPTL0gRxs9rPzHxGofN10koV2EBltOaPBWBGCXytcU0rFGf0I5pViAUHk3nbS8 VwMlw73oW8P+U4QqBoeu2r+4bZAl00oJBp7atttxvoGfQGk35QU+3oLfUXOzXynQ+V WPzIPulFHsboMHx4z7oyeIr9X9xG+qHpT1y1p7pcMSqc8AmcOdztvGfezSGEPqD+z2 1WZfuFMbUOXtOm8N4GVF0zH8ROFSXtRCOi92dNkIKB/E6ldUdlIAtAix6uH+3VhMWN TBYa9PN8M35xA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CCAA418006A for ; Mon, 14 Jul 2025 12:42:21 +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=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.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) 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 ; Mon, 14 Jul 2025 12:42:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1752497048; bh=Nec5JWuVpUfZ6MrHdmzCuRC1hC9YBl70bVi5q2cSnJI=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=gnrHtj8niMsPu43QYzjTT3kyL6DIT08uXpn3WLrD1c+uDzlVbknw7MUJK4njghnm5 YcfBMkbgmhRtW9vW7wsQ1Pz5ZGwy8vS3qdpQLvS3aXuD10SyH7Eqgg4LoAxgzXiifb 07czZpB0szTDk5asQXegkOk2nr2skfgtzTx9UF9wNlQMMu9hatIakvfQUbAbJJsFGZ QE0AZK04wDEtL1yMzgNbgShWr9+l5vV2rkGh62OCzJpTZ37R34LLyCJa3Txq8vR/qp wEY+RXirxvX7XWhuyL5hpNlAP04iYWJukVzf1jWXOqXptU4kNOEZ0WVY2VzoatJjUq MmJi4f5rXHk9g== Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 264BC10C033; Mon, 14 Jul 2025 13:44:08 +0100 (BST) Date: Mon, 14 Jul 2025 13:44:07 +0100 (BST) To: Daniel Scherzer cc: php internals Subject: Re: [PHP-DEV] [RFC] [Discussion] FILTER_THROW_ON_FAILURE In-Reply-To: Message-ID: <1bb61a57-5f88-03bd-8d88-9a24f1a05dab@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: text/plain; charset=US-ASCII From: derick@php.net (Derick Rethans) On Sat, 5 Jul 2025, Daniel Scherzer wrote: > Hi internals, > > I'd like to start the discussion for a new RFC about adding > a FILTER_THROW_ON_FAILURE flag to the filter extension. > > * RFC: https://wiki.php.net/rfc/filter_throw_on_failure > * Implementation: https://github.com/php/php-src/pull/18896 I think this is an excellent idea. I left a review on the PR, with a suggestion to improve the exception message (slightly): https://github.com/php/php-src/pull/18896/files#r2204824115 cheers, Derick