mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Fix tests with explicit opcache.log_verbosity_level setting
This commit is contained in:
parent
0016b3085c
commit
f8c9928e6f
2 changed files with 8 additions and 2 deletions
|
@ -6,6 +6,7 @@ opcache
|
||||||
opcache.max_wasted_percentage=60
|
opcache.max_wasted_percentage=60
|
||||||
opcache.memory_consumption=7
|
opcache.memory_consumption=7
|
||||||
opcache.max_accelerated_files=10
|
opcache.max_accelerated_files=10
|
||||||
|
opcache.log_verbosity_level=2
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
$config = opcache_get_configuration();
|
$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(ini_get('opcache.max_accelerated_files'));
|
||||||
var_dump($config['directives']['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"
|
string(1) "5"
|
||||||
float(0.05)
|
float(0.05)
|
||||||
string(3) "128"
|
string(3) "128"
|
||||||
|
|
|
@ -5,7 +5,6 @@ opcache.enable=1
|
||||||
opcache.enable_cli=1
|
opcache.enable_cli=1
|
||||||
opcache.optimization_level=-1
|
opcache.optimization_level=-1
|
||||||
opcache.preload={PWD}/preload_nested_function.inc
|
opcache.preload={PWD}/preload_nested_function.inc
|
||||||
opcache.interned_strings_buffer=0
|
|
||||||
--EXTENSIONS--
|
--EXTENSIONS--
|
||||||
opcache
|
opcache
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue