It's INI_SYSTEM because it may affect the compiled code that might be
cached.
So changing it on second request won't affect already cache code.
Thanks. Dmitry.
On Wed, Feb 5, 2014 at 12:57 AM, Rowan Collins <rowan.collins@gmail.com>wrote:
> On 04/02/2014 05:36, Dmitry Stogov wrote:
>
>> >BTW, current patch has zend.assertions as INI_SYSTEM, which means the
>>> >whole server can either have assertions on or off.
>>>
>> It's INI_SYSTEM on purpose. zend.assertions is a 3 way switch that may
>> disable code generation for assert().
>> Changing it after PHP files are already cached won't make any effect.
>>
>>
>>
> Incidentally, if this is true, the introduction in the RFC is incorrect,
> as it currently states:
>
> > assertions can therefore be disabled and enabled via the PHP_INI_ALL
> configuration setting zend.assertions
>
> The explanation of *why* it would be INI_SYSTEM could also be added there.
>
> --
> Rowan Collins
> [IMSoP]
>
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>