Bug #78291 [PATCH]: opcache_get_configuration doesn't list all directives

From: Date: Sun, 14 Jul 2019 14:05:37 +0000
Subject: Bug #78291 [PATCH]: opcache_get_configuration doesn't list all directives
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221768@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78291&edit=1 ID: 78291 Patch added by: andy@amnuts.com Reported by: andy at amnuts dot com Summary: opcache_get_configuration doesn't list all directives Status: Open Type: Bug Package: opcache PHP Version: 7.2.20 Block user comment: N Private report: N New Comment: The following pull request has been associated: Patch Name: Fixes #78291 (missing opcache directives) On GitHub: https://github.com/php/php-src/pull/4402 Patch: https://github.com/php/php-src/pull/4402.patch Previous Comments: ------------------------------------------------------------------------ [2019-07-14 14:02:21] andy at amnuts dot com Description: ------------ New opcache directives have been added recently which are returned if using ini_get_all('zend opcache') but are not listed in the directives if using opcache_get_configuration(). Test script: --------------- <?php $opts = opcache_get_configuration()['directives']; $inis = ini_get_all('zend opcache'); var_dump(array_diff_key($inis, $opts)); ?> Expected result: ---------------- array(0) { } Actual result: -------------- array(4) { ["opcache.file_update_protection"]=> array(3) { ["global_value"]=> string(1) "2" ["local_value"]=> string(1) "2" ["access"]=> int(7) } ["opcache.huge_code_pages"]=> array(3) { ["global_value"]=> string(1) "0" ["local_value"]=> string(1) "0" ["access"]=> int(4) } ["opcache.opt_debug_level"]=> array(3) { ["global_value"]=> string(1) "0" ["local_value"]=> string(1) "0" ["access"]=> int(4) } ["opcache.restrict_api"]=> array(3) { ["global_value"]=> string(0) "" ["local_value"]=> string(0) "" ["access"]=> int(4) } } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78291&edit=1

« previous php.bugs (#221768) next »