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