xref: /PHP-8.1/ext/opcache/tests/bug79665.phpt (revision e9f783fc)
1--TEST--
2Bug #79665 (ini_get() and opcache_get_configuration() may be inconsistent)
3--EXTENSIONS--
4opcache
5--INI--
6opcache.max_wasted_percentage=60
7opcache.memory_consumption=7
8opcache.max_accelerated_files=10
9--FILE--
10<?php
11$config = opcache_get_configuration();
12var_dump(ini_get('opcache.max_wasted_percentage'));
13var_dump($config['directives']['opcache.max_wasted_percentage']);
14var_dump(ini_get('opcache.memory_consumption'));
15var_dump($config['directives']['opcache.memory_consumption']);
16var_dump(ini_get('opcache.max_accelerated_files'));
17var_dump($config['directives']['opcache.max_accelerated_files']);
18?>
19--EXPECT--
20string(1) "5"
21float(0.05)
22string(3) "128"
23int(134217728)
24string(5) "10000"
25int(10000)
26