From f333ba141c289938196ef7fbf248e0b9adc0c4a7 Mon Sep 17 00:00:00 2001 From: Calvin Buckley Date: Fri, 28 Aug 2026 17:25:34 -0300 Subject: [PATCH] [skip ci] Document error_include_args in NEWS and UPGRADING Not sure how backdated NEWS will be useful, but this does add the note in UPGRADING which does matter. Per https://github.com/php/php-src/pull/12276#issuecomment-5388504104 --- NEWS | 2 ++ UPGRADING | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/NEWS b/NEWS index e112bfb5351e..a5d1c4e91890 100644 --- a/NEWS +++ b/NEWS @@ -620,6 +620,8 @@ PHP NEWS . Deprecate returning values from __construct() and __destruct(). (timwolla) . base_convert, bindex, hexdec and octdec now raise a notice when they cannot precisely convert the given number. (Sjoerd Langkemper) + . Added error_include_args INI option to make the display of function + arguments consistent in error output. (Calvin Buckley) - BCMath: . Added NUL-byte validation to BCMath functions. (jorgsowa) diff --git a/UPGRADING b/UPGRADING index 78074404b400..e00d9ed2d64f 100644 --- a/UPGRADING +++ b/UPGRADING @@ -871,6 +871,15 @@ PHP 8.6 UPGRADE NOTES 11. Changes to INI File Handling ======================================== +- Core: + . The error_include_args INI option has been added to make the display of + function arguments consistent in errors; it is off by default. Previously, + some functions shown a parameter in the error that was up to call to the + internal error function. Now, all parameters as were actually passed to + the function will be displayed. This uses the same infrastructure as stack + traces, so i.e. sensitive parameters will not be displayed, and strings + will be truncated according to zend.exception_string_param_max_len. + - Mbstring: . The mbstring.detect_order INI directive now updates the internal detection order when changed at runtime via ini_set(). Previously, runtime changes