xref: /PHP-8.1/ext/opcache/tests/gh11715.phpt (revision ee3f9323)
1--TEST--
2GH-11715 (opcache.interned_strings_buffer either has no effect or opcache_get_status() / phpinfo() is wrong)
3--EXTENSIONS--
4opcache
5--INI--
6opcache.enable=1
7opcache.enable_cli=1
8opcache.interned_strings_buffer=16
9--FILE--
10<?php
11
12$info = opcache_get_status()['interned_strings_usage'];
13var_dump($info['used_memory'] + $info['free_memory']);
14var_dump($info['buffer_size']);
15
16?>
17--EXPECT--
18int(16777216)
19int(16777216)
20