Bug #78291 [Opn->Csd]: opcache_get_configuration doesn't list all directives

From: Date: Mon, 15 Jul 2019 08:33:42 +0000
Subject: Bug #78291 [Opn->Csd]: opcache_get_configuration doesn't list all directives
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221771@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 Updated by: nikic@php.net Reported by: andy at amnuts dot com Summary: opcache_get_configuration doesn't list all directives -Status: Open +Status: Closed Type: Bug Package: opcache PHP Version: 7.2.20 Block user comment: N Private report: N New Comment: Automatic comment on behalf of andy@amnuts.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=768ad70f70a1bebed38e2b06a7515e3c61482f75 Log: Fix bug #78291 Missing opcache directives Previous Comments: ------------------------------------------------------------------------ [2019-07-14 14:05:37] andy at amnuts dot com 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 ------------------------------------------------------------------------ [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 (#221771) next »