Fix tests with explicit opcache.log_verbosity_level setting

This commit is contained in:
Ilija Tovilo 2024-02-05 15:00:32 +01:00
parent 0016b3085c
commit f8c9928e6f
No known key found for this signature in database
GPG key ID: A4F5D403F118200A
2 changed files with 8 additions and 2 deletions

View file

@ -6,6 +6,7 @@ opcache
opcache.max_wasted_percentage=60
opcache.memory_consumption=7
opcache.max_accelerated_files=10
opcache.log_verbosity_level=2
--FILE--
<?php
$config = opcache_get_configuration();
@ -16,7 +17,13 @@ var_dump($config['directives']['opcache.memory_consumption']);
var_dump(ini_get('opcache.max_accelerated_files'));
var_dump($config['directives']['opcache.max_accelerated_files']);
?>
--EXPECT--
--EXPECTF--
%s: Warning opcache.memory_consumption is set below the required 8MB.
%s: Warning opcache.max_accelerated_files is set below the required minimum (200).
%s: Warning opcache.max_wasted_percentage must be set between 1 and 50.
string(1) "5"
float(0.05)
string(3) "128"

View file

@ -5,7 +5,6 @@ opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
opcache.preload={PWD}/preload_nested_function.inc
opcache.interned_strings_buffer=0
--EXTENSIONS--
opcache
--SKIPIF--