Re: Is there a mapping between "access level" from output ini_get_all() and constants HP_INI_USER, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_ALL in
official docs?
| From: | Костя Третяк | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Is there a mapping between "access level" from output ini_get_all() and constants HP_INI_USER, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_ALL in official docs? |
||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969385211@lists.php.net to get a copy of this message | ||
When I see it the output function ini_get_all(), for example print_r(ini_get_all("pcre")).
I get a value of "pcre.backtrack_limit['access'] => 7", and understand that it means the level of access,
but does not have a mapping to determine that this applies to constants PHP_INI_ALL
(maybe this is only on Windows 7 and other OS this constant is defined). Is there a way
to make sure that the "access level" with a value of 7 corresponds to constant PHP_INI_ALL?
On 08.10.2014 17:15, Chris Wright wrote:
Hi Костя On 8 October 2014 14:57, Костя Третяк <ktretyak.in.ua@gmail.com> wrote:Hi all. On page http://php.net/manual/en/function.ini-get-all.php mentioned about "access level", and is given a link to the page http://php.net/manual/en/configuration.changes.modes.php (for more information). But on this page now "access level" called as "modes", and is not mentioned on the mapping between the numeric value of "access level" from output ini_get_all() and constants (PHP_INI_USER, PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM). I tried to find this mapping but not found it (searched keyword 'constant "PHP_INI_PERDIR" have value 2 site:php.net') in the official documentation, only in the comments of users on the page function ini_get_all(). This mapping is also on an outside website (http://docstore.mik.ua/orelly/webprog/pcook/ch08_23.htm#phpckbk-CHP-8-TABLE-3). But why it's not in the official documentation? Apologies if I badly looking for information.I'm not entirely clear on what you are looking for here that is not explained in the manual. It seems pretty clear from the link to the "modes" that this is what access levels refer to. If you are looking for documentation of the *values* of these constants, there is a good reason this is not present (as with most constants), which is that the values should not be relied upon as they may change in the future - when comparing against these, it is expected that the user would use the constants and treat the returned value as the bitmasks that they are in order to determine where a value my be changed. If any information is missing from the manual, it is probably an explanation of why the values should not be used directly, roughly as above. Or did I misunderstand what you are looking for? Thanks, Chris