Bug #79588 [PATCH]: Boolean opcache settings ignore on/off values
| From: | cmb@php.net | Date: | Tue, 12 May 2020 14:23:16 +0000 |
| Subject: | Bug #79588 [PATCH]: Boolean opcache settings ignore on/off values | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-227014@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79588&edit=1
ID: 79588
Patch added by: cmb@php.net
Reported by: vedad at kajtaz dot net
Summary: Boolean opcache settings ignore on/off values
Status: Verified
Type: Bug
Package: *Configuration Issues
Operating System: FreeBSD 12.1-RELEASE
PHP Version: 7.4.5
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
The following pull request has been associated:
Patch Name: Fix #79588: Boolean opcache settings ignore on/off values
On GitHub: https://github.com/php/php-src/pull/5560
Patch: https://github.com/php/php-src/pull/5560.patch
Previous Comments:
------------------------------------------------------------------------
[2020-05-12 14:18:08] cmb@php.net
This is a display glitch only, but nonetheless should be improved.
------------------------------------------------------------------------
[2020-05-11 16:45:59] vedad at kajtaz dot net
Description:
------------
The following opcache settings (and possibly others), marked as boolean in the documentation, do not
seem to be properly taken into account when set to literal on of off in php.ini / fpm configuration
file:
opcache.file_cache_only
opcache.revalidate_path
opcache.save_comments
Specifically, phpinfo() displays "no value" instead of "0"/"1" or
"Off"/"On", while the literal 0 and 1 result in phpinfo displaying
"0"/"1".
I'm unsure whether this is a phpinfo() display glitch only, or if the provided configuration
values are actually ignored, but it's definitely inconsistent with other settings (eg.
opcache.revalidate_path, opcache.use_cwd, ..., also marked boolean in the documentation).
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79588&edit=1