/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/opcache/tests/opcache_jit_prof_threshold.phpt
19 строк
537 B
Christoph M. Becker
opcache_get_configuration() properly reports jit_prof_threshold
09 дек 2024, 13:45
Не верифицирован
09 дек 2024, 13:45
3702f97
Код
Авторство
О чём код?
--TEST-- opcache_get_configuration() properly reports jit_prof_threshold --EXTENSIONS-- opcache --SKIPIF-- <?php if (!isset(opcache_get_configuration()["directives"]["opcache.jit_prof_threshold"])) die("skip no JIT"); ?> --FILE-- <?php $expected = 1 / 128; // needs to be exactly representable as IEEE double ini_set("opcache.jit_prof_threshold", $expected); $actual = opcache_get_configuration()["directives"]["opcache.jit_prof_threshold"]; var_dump($actual); var_dump($actual === $expected); ?> --EXPECTF-- float(0.0078125) bool(true)