Re: [RFC] Display Function Arguments in Errors
| From: | Calvin Buckley | Date: | Mon, 30 Mar 2026 18:36:49 +0000 |
| Subject: | Re: [RFC] Display Function Arguments in Errors | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-130498@lists.php.net to get a copy of this message | ||
On Mar 30, 2026, at 12:24 PM, Tim Düsterhus <tim@bastelstu.be> wrote:
>
> Hi
>
> Am 2026-03-30 16:40, schrieb Calvin Buckley:
>> If I don't hear any additional feedback, I think I'll open this for
>> voting at the end of the week.
>
> I've looked once more into my “naming remark” and realized that the
>
display_ prefix might actually be misleading (instead of “just”
> inconsistent) when compared to display_errors or
> display_startup_errors, because
> display_error_function_args does not control whether the arguments
> are *displayed*. It also controls whether or not the arguments are visible to a registered
> error_handler, which is quite different from just suppressing them from public display as done by
> display_errors.
>
> My suggestion of error_ignore_args thus still stands and I
> would likely vote against the RFC with the current naming (despite being in favor of the feature
> itself).
>
> Best regards
> Tim Düsterhus
I can rename this in the RFC since no one else had any other suggestions.
I'm not attached to any name for the INI option myself.