You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation for opcache.jit, the value disable means "Completely disabled, cannot be enabled at runtime", and the value off means "Disabled, but can be enabled at runtime".
But if you put the following values in your php.ini:
...then you try to enable at runtime inside a .php file:
<?phpini_set('opcache.jit', 'tracing');
...then you will get this:
Warning: Cannot change opcache.jit setting at run-time (JIT is disabled)
This is the same result you get if you set opcache.jit=disable.
As far as I can tell, the problem is that the code is looking for the literal string off but since that value is handled specially by PHP's ini parser, the code will never actually see a value of off. (It will never see no or false either.)
Description
According to the documentation for
opcache.jit
, the valuedisable
means "Completely disabled, cannot be enabled at runtime", and the valueoff
means "Disabled, but can be enabled at runtime".But if you put the following values in your
php.ini
:...then you try to enable at runtime inside a
.php
file:...then you will get this:
This is the same result you get if you set
opcache.jit=disable
.As far as I can tell, the problem is that the code is looking for the literal string
off
but since that value is handled specially by PHP's ini parser, the code will never actually see a value ofoff
. (It will never seeno
orfalse
either.)php-src/ext/opcache/jit/zend_jit.c
Lines 4806 to 4817 in 8830fbd
PHP Version
PHP 8.3.7
Operating System
No response
The text was updated successfully, but these errors were encountered: