From d7e04f414c22abe8b07905e4e9f5ce3e35f9ac02 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Mon, 25 May 2026 08:07:29 +0200 Subject: [PATCH 1/2] Document new key "builtin_default_value" of the array returned by ini_get_all() in PHP >= 8.6.0 --- reference/info/functions/ini-get-all.xml | 34 +++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/reference/info/functions/ini-get-all.xml b/reference/info/functions/ini-get-all.xml index 09cf1eb32cab..be011b81edef 100644 --- a/reference/info/functions/ini-get-all.xml +++ b/reference/info/functions/ini-get-all.xml @@ -55,7 +55,10 @@ When details is &true; (default) the array will contain global_value (set in &php.ini;), local_value (perhaps set with - ini_set or &htaccess;), and + ini_set or &htaccess;), + builtin_default_value (the built-in default value of the + directive, or &null; if it has none, independent of values set in + &php.ini;, on the command line, or at runtime), and access (the access level). @@ -74,6 +77,31 @@ + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 8.6.0 + + The builtin_default_value element was added to the + details array returned for each directive. + + + + + + + + &reftitle.examples; @@ -96,6 +124,7 @@ Array ( [global_value] => 100000 [local_value] => 100000 + [builtin_default_value] => 100000 [access] => 7 ) @@ -103,6 +132,7 @@ Array ( [global_value] => 100000 [local_value] => 100000 + [builtin_default_value] => 100000 [access] => 7 ) @@ -113,6 +143,7 @@ Array ( [global_value] => 0 [local_value] => 0 + [builtin_default_value] => 0 [access] => 6 ) @@ -120,6 +151,7 @@ Array ( [global_value] => 1 [local_value] => 1 + [builtin_default_value] => 1 [access] => 4 ) From aff1622ef8522e57453e15d003e8393e1f5fc066 Mon Sep 17 00:00:00 2001 From: Jordi Kroon Date: Wed, 12 Aug 2026 22:03:18 +0200 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Jordi Kroon --- reference/info/functions/ini-get-all.xml | 44 +++++++++++------------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/reference/info/functions/ini-get-all.xml b/reference/info/functions/ini-get-all.xml index be011b81edef..3e0e60e6fd45 100644 --- a/reference/info/functions/ini-get-all.xml +++ b/reference/info/functions/ini-get-all.xml @@ -51,7 +51,7 @@ Returns &false; and raises an E_WARNING level error if the extension doesn't exist. - + When details is &true; (default) the array will contain global_value (set in &php.ini;), local_value (perhaps set with @@ -60,7 +60,7 @@ directive, or &null; if it has none, independent of values set in &php.ini;, on the command line, or at runtime), and access (the access level). - + When details is &false; the value will be the current value of the option. @@ -79,27 +79,25 @@ &reftitle.changelog; - - - - - - &Version; - &Description; - - - - - 8.6.0 - - The builtin_default_value element was added to the - details array returned for each directive. - - - - - - + + + + + &Version; + &Description; + + + + + 8.6.0 + + The builtin_default_value element was added to the + details array returned for each directive. + + + + +