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: | Peter Cowburn | Date: | Wed, 08 Oct 2014 19:19:35 +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 3 4 5 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969385219@lists.php.net to get a copy of this message | ||
On 8 October 2014 17:27, Rowan Collins <rowan.collins@gmail.com> wrote:
> Peter Cowburn wrote (on 08/10/2014):
>
>> Those PHP_INI_* "modes" are made available to PHP scripts via INI_*
>> constants: INI_USER, INI_PERDIR, INI_SYSTEM, INI_ALL.
>>
>> They have been available "forever"... see
>> http://3v4l.org/a1JeF
>>
>
> Hm, in that case it probably *is* a documentation problem - why are they
> labelled PHP_INI_* in the docs, but INI_* in the engine?
They are PHP_INI_* in the source (mapping from ZEND_INI_*). My guess would
be that the PHP_INI_* names are used because that is most familiar, due to
them being the names in the source code.
The INI_* constants only appear to be documented at
http://php.net/info.constants and even that mention is
relatively new
(2012, thanks vrana!).
>
>
> Regards,
> --
> Rowan Collins
> [IMSoP]
>