mirror of
https://github.com/php/php-src.git
synced 2025-01-10 04:54:47 +08:00
768ad70f70
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()`. This fix adds those missing directives as well as if `opcache.mmap_base` is used instead of `opcache.lockfile_path`. Also adds a test to ensure the directives match with both methods of fetching.
17 lines
404 B
PHP
17 lines
404 B
PHP
--TEST--
|
|
Test that the directives listed with `opcache_get_configuration` include all those from the ini settings.
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.opt_debug_level=0
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
$opts = opcache_get_configuration()['directives'];
|
|
$inis = ini_get_all('zend opcache');
|
|
var_dump(array_diff_key($inis, $opts));
|
|
?>
|
|
--EXPECT--
|
|
array(0) {
|
|
}
|