Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130292 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 C8EE71A00BC for ; Wed, 11 Mar 2026 18:35:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1773254156; bh=YOSXliLIi95nkLjbFtMq8JHCFbpQ7iz0NNCMEgusjuM=; h=Date:Subject:To:References:From:In-Reply-To:From; b=g5OIgZbJ9x2sVmfJc8Xg0wJmPRa2p0KD8334uE3An/wa46f7ZzdXMIAx/KP9lfmN8 ifSHEHsNxPCQjXzm5CSyz1d4m+SPXtWQRtsR+qdCUvsD+iM5MjLci5bP1ludsQGH2Z N7cncFSUqyQ+cTUFqaBqu4LlHWp9s3zPOAbhJYL7P9+IrHmZ0UZoFtheIifIwyrkrK pVQ/9MuMIQKijIVrU8H4GTO8uz1+ya0p/J8gvo0SNV3Ns75ViEPZpx+D7Wx+0s6V8M 9pwf2HhVix718oUFKx9g0VjtZp5uyqfr55BgRyfMBVMe5Be0D357KiboKREWnPlxyR aUEOjuxFAoBaw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 705E1180077 for ; Wed, 11 Mar 2026 18:35:55 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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, 11 Mar 2026 18:35:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1773254147; bh=WppdDVhdvnrxN12BFMZ5Vp3IcSkvWUY5tvZdxpxBNYo=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=fGSLmFCJ9wGG4X7pQ2oDHggr4nDdaSDEWUDtxrmTinv/GMx/c2D0fVEwNJzSGIslI KJdX7Exajk//BZUS2Pi4vheeoOO+YDuZ9hW2vsBV4v+ay5tVLSJXi4gNCDTQLgDclj LZbClbqddYd7IVJDejFWzWkPrY2L4nTkfwvxKUitUWAMDbpXsjNXj3TL0Zejdvc9nQ ctr43Mtx0zIfpQC3W2JrR2GyqWvWdNDalMbnTAWVzOneFn6SgJ8lJUy2pJfh4AV1J1 JB/OxL/OmADx4EPXV0awVX87oa9EyixD25iQM0A6HoWBa0nCJXqQARrR8tRWTGwpzZ +zYBGow3BTmNQ== Message-ID: <6c498ed3-3cb0-47a5-a64e-4ad202eba141@bastelstu.be> Date: Wed, 11 Mar 2026 19:35:45 +0100 Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] Display Function Arguments in Errors To: Calvin Buckley , PHP internals References: <939CFA28-A6FF-433F-85A0-B83345CEF4A6@cmpct.info> Content-Language: en-US In-Reply-To: <939CFA28-A6FF-433F-85A0-B83345CEF4A6@cmpct.info> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 3/11/26 16:55, Calvin Buckley wrote: > Based on the feedback I had from my proposal for function arguments in > errors last week, I'd like to introduce an RFC for it. Please let me > know what you think and please raise any possible issues. > > https://wiki.php.net/rfc/display_error_function_args Thank you for the RFC. I have the following comments: 1. I believe there is almost never “No Impact” to the ecosystem. In fact the RFC partly acknowledges it in the “Backward Incompatible Changes” section. Even if the corresponding sub-vote to default to 1 doesn't pass, code needs to be prepared for someone to set it to 1 themselves. This includes off-the-shelf software (such as WordPress, or Drupal, or whatever). I have the following two suggestions (that follow pretty naturally, but are nevertheless an impact that should be spelled out): a) Custom error handlers (set_error_handlers()) need to be prepared for the error message format to change. Even though we don't make any guarantees about error messages themselves, the existing format with “function name first” is reasonably structured for automated parsing (e.g. using a regular expression). This also includes error tracking tools that try to group error messages by function or similar. b) System administrators have one more INI setting to deal with and need to make a decision. Previous versions of the RFC template had an explicit “INI setting” section, but given it's so rare we add new INI settings these days, it has been removed from the template. For the few that still add one, properly discussing the consequences still is valuable. 2. As for the naming of the bikeshed, I suggest `error_ignore_args` for consistency with `zend.exception_ignore_args`. 3. For the voting options: You need to define a tie-breaker for the secondary votes. Best regards Tim Düsterhus