Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130520 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 571441A00BC for ; Tue, 31 Mar 2026 13:57:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1774965461; bh=pRBK7nsUVTowtbCBwoPkRgRy8GcFXoNkHkeJhHlvMbA=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=WknhvwPEvBob8ds5yFYC/nuZvHHNCRVnwmB1xqe2c6YTrHuigoYitY2D3Gb1rSm5A rZx7C04coaqrmTEeLZTQjbPpm4ytYAMo4tMbjWT0EX/0UL4jjbjhox8t9bHgKEZEoO biDKX6L8XvBffcnD5jjLsZLKtUI90l6DjgiNNV5e/omiFKrj8StENatkcU2+txk0RH aVv5NHbdWNnokBrl2MZ14ViO7hBKTFK0XlleNbwE23Fj3BHPlO/a4QPAEOaBfeAAR6 6omv+brqI5rNpkAPROVfEXDsRkG1sbKNyZJez+L6XUnDJOn0TsvKPuCsp4gssdJC/G trPU/Df7JeHiA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 410E61804A7 for ; Tue, 31 Mar 2026 13:57:41 +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.8 required=5.0 tests=BAYES_50,DMARC_MISSING, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from supercat.cmpct.info (supercat.cmpct.info [71.19.146.230]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 31 Mar 2026 13:57:25 +0000 (UTC) Received: from smtpclient.apple (fctnnbsc38w-142-134-101-31.dhcp-dynamic.fibreop.nb.bellaliant.net [142.134.101.31]) by supercat.cmpct.info (Postfix) with ESMTPSA id 91F5C42F33; Tue, 31 Mar 2026 13:57:19 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.500.181\)) Subject: Re: [PHP-DEV] [RFC] Display Function Arguments in Errors In-Reply-To: <26265d7b-6306-72f2-1a0f-a447576018e5@php.net> Date: Tue, 31 Mar 2026 10:57:08 -0300 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <555659A5-34EC-4E0F-8C63-F9D22DB09385@cmpct.info> References: <939CFA28-A6FF-433F-85A0-B83345CEF4A6@cmpct.info> <26265d7b-6306-72f2-1a0f-a447576018e5@php.net> To: Derick Rethans X-Mailer: Apple Mail (2.3864.500.181) From: calvin@cmpct.info (Calvin Buckley) On Mar 31, 2026, at 6:53=E2=80=AFAM, Derick Rethans = wrote: >=20 > On Wed, 11 Mar 2026, Calvin Buckley wrote: >=20 >> Based on the feedback I had from my proposal for function arguments = in=20 >> errors last week, I'd like to introduce an RFC for it. Please let me=20= >> know what you think and please raise any possible issues. >>=20 >> https://wiki.php.net/rfc/display_error_function_args >=20 > | Add a error_ignore_args, which potentially defaults to =E2=80=9C0=E2=80= =9D. This is=20 > | made an INI option, as some users may want to disable the feature by=20= > | enabling this option, at least for production (e.g. risks of = untagged=20 > | PII in logs, size of logs, format compatibility with older versions = of=20 > | PHP).=20 >=20 > I'm generally not in favour of new ini settings. I also don't think = this=20 > is going to help a lot, as many people will likely not change the=20 > default. >=20 > But, I am especially not keen on "negative names". Names that include=20= > "ignore" or "disable" for example. If you must have an ini setting, it=20= > ought to be something like "include_error_args" (defaulting to "0", I=20= > suspect). >=20 > The confusion in=20 > https://github.com/php/php-src/pull/12276#pullrequestreview-4035216287=20= > also explains why I feel this. >=20 > cheers, > Derick >=20 > --=20 > https://derickrethans.nl | https://xdebug.org | https://dram.io >=20 > Author of Xdebug. Like it? Consider supporting me: = https://xdebug.org/support >=20 > mastodon: @derickr@phpc.social @xdebug@phpc.social Tim, would this name be OK? I also have a preference towards a = non-inverted name (it was more overhead to keep track of it), but I do = see wanting it consistent.=