Use 0 and 1 for booleans in ini files
You can use php -i
to get the PHP config, however due to this behaviour:
Values null, off, no and false result in "", and values on, yes and true result in "1"
The output will contain false results unless 0
is use rather than null
, off
, no
or false
, for example:
php -v
PHP 8.3.12 (cli) (built: Sep 27 2024 04:03:53) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.12, Copyright (c) Zend Technologies
with Zend OPcache v8.3.12, Copyright (c), by Zend Technologies
grep -e "^opcache\.jit[ ]" /etc/php/8.3/cli/php.ini
opcache.jit = off
php -i | grep -e "^opcache\.jit[ ]"
opcache.jit => no value => no value