Skip to content

Commit f8c9928

Browse files
committed
Fix tests with explicit opcache.log_verbosity_level setting
1 parent 0016b30 commit f8c9928

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ext/opcache/tests/bug79665.phpt

+8-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ opcache
66
opcache.max_wasted_percentage=60
77
opcache.memory_consumption=7
88
opcache.max_accelerated_files=10
9+
opcache.log_verbosity_level=2
910
--FILE--
1011
<?php
1112
$config = opcache_get_configuration();
@@ -16,7 +17,13 @@ var_dump($config['directives']['opcache.memory_consumption']);
1617
var_dump(ini_get('opcache.max_accelerated_files'));
1718
var_dump($config['directives']['opcache.max_accelerated_files']);
1819
?>
19-
--EXPECT--
20+
--EXPECTF--
21+
%s: Warning opcache.memory_consumption is set below the required 8MB.
22+
23+
%s: Warning opcache.max_accelerated_files is set below the required minimum (200).
24+
25+
%s: Warning opcache.max_wasted_percentage must be set between 1 and 50.
26+
2027
string(1) "5"
2128
float(0.05)
2229
string(3) "128"

ext/opcache/tests/preload_013.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ opcache.enable=1
55
opcache.enable_cli=1
66
opcache.optimization_level=-1
77
opcache.preload={PWD}/preload_nested_function.inc
8-
opcache.interned_strings_buffer=0
98
--EXTENSIONS--
109
opcache
1110
--SKIPIF--

0 commit comments

Comments
 (0)