diff --git a/reference/info/functions/ini-get-all.xml b/reference/info/functions/ini-get-all.xml index 593b7d9bb6..8f239ad185 100644 --- a/reference/info/functions/ini-get-all.xml +++ b/reference/info/functions/ini-get-all.xml @@ -1,5 +1,5 @@ - + ini_get_all @@ -11,6 +11,7 @@ arrayini_get_all stringextension + booldetails Returns all the registered configuration options. @@ -30,6 +31,15 @@ + + details + + + Retrieve details settings or only the current value for each setting. + Default is &true; (retrieve details). + + + @@ -37,12 +47,21 @@ &reftitle.returnvalues; - Returns an associative array uses the directive name as the array key, - with elements of that array being global_value (set in + Returns an associative array with directive name as the array key. + + + 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 - access (the access level). See the manual section - on configuration changes + access (the access level). + + + When details is &false; the value will be the + current value of the option. + + + See the manual section for information on what access levels mean. @@ -53,18 +72,40 @@ + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.3.0 + + Added details. + + + + + + + + &reftitle.examples; - A <function>ini_get_all</function> example + <function>ini_get_all</function> examples ]]> @@ -72,23 +113,68 @@ print_r($inis); Array + ( + [global_value] => 100000 + [local_value] => 100000 + [access] => 7 + ) + + [pcre.recursion_limit] => Array + ( + [global_value] => 100000 + [local_value] => 100000 + [access] => 7 + ) + +) +Array ( [allow_call_time_pass_reference] => Array - ( - [global_value] => 1 - [local_value] => 1 - [access] => 6 - ) + ( + [global_value] => 0 + [local_value] => 0 + [access] => 6 + ) + [allow_url_fopen] => Array - ( - [global_value] => 1 - [local_value] => 1 - [access] => 7 - ) + ( + [global_value] => 1 + [local_value] => 1 + [access] => 4 + ) ... ) +]]> + + + + Disabling <parameter>details</parameter> + + +]]> + + &example.outputs.similar; + + 100000 + [pcre.recursion_limit] => 100000 +) +Array +( + [allow_call_time_pass_reference] => 0 + [allow_url_fopen] => 1 + ... +) ]]> @@ -99,6 +185,7 @@ Array &reftitle.seealso; + ini_get ini_restore ini_set